/* fwz.ai — FWZ service platform */
:root {
  --paper: #F6F7FA;
  --surface: #FFFFFF;
  --ink: #13213D;
  --ink-2: #364563;
  --muted: #5F6B82;
  --line: #DCE1EA;
  --red: #C21F2C;
  --blue: #1C3F94;
  --green: #0A7A45;
  --blue-soft: #E8EDF8;
  --green-soft: #E4F2EA;
  --red-soft: #F8E6E7;
  --cta: var(--green);
  --cta-ink: #FFFFFF;
  --sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --arabic: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif;
  --naskh: "Amiri", "Traditional Arabic", serif;
  --measure: 64ch;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C1528;
    --surface: #121E36;
    --ink: #EAEEF6;
    --ink-2: #C3CBDB;
    --muted: #8E9AB2;
    --line: #233251;
    --red: #F06A6F;
    --blue: #8DB0F5;
    --green: #4CC48A;
    --blue-soft: #16264A;
    --green-soft: #12302A;
    --red-soft: #33192A;
    --cta: #4CC48A;
    --cta-ink: #06150E;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--arabic); font-size: 17.5px; line-height: 1.85; }
img { max-width: 100%; display: block; }
picture { display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { inset-inline-start: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .08em; }
.brand img { width: 30px; height: 30px; }
.brand .brand-ar { font-family: var(--naskh); font-weight: 700; letter-spacing: 0; font-size: 22px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.lang { font-size: 14.5px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; text-decoration: none; }
.lang:hover { border-color: var(--ink-2); }
@media (max-width: 980px) { .nav { display: none; } .nav-cta { margin-inline-start: auto; } }
@media (max-width: 480px) { .nav-cta { display: none; } .lang { margin-inline-start: auto; } .brand .brand-ar { display: none; } }

/* Hero */
.hero { padding-block: 64px 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero-logo { order: -1; max-width: 340px; } }
.hero h1 { font-weight: 700; font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.07; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin: 22px 0 0; }
.hero .note { margin: 22px 0 0; font-size: 14.5px; color: var(--muted); }
.hero-logo img { width: 100%; height: auto; }
.hero.small { padding-block: 56px 24px; }
.hero.small h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); max-width: 20ch; }

/* Sections */
section { padding-block: 64px; }
section + section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 32px; align-items: start; }
.wrap > .sec-head { margin-bottom: 30px; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; gap: 12px; } }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.4; }
h3 { font-weight: 600; font-size: 1.15rem; line-height: 1.35; margin: 0 0 6px; }
.prose { max-width: var(--measure); color: var(--ink-2); margin: 0; }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .offers { grid-template-columns: 1fr; } }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; border-top: 4px solid var(--blue); }
.offer.concierge { border-top-color: var(--red); }
.offer.business { border-top-color: var(--green); }
.offer .tag { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.offer h3 { font-size: 1.4rem; margin: 0; }
.offer .sub { margin: 2px 0 12px; color: var(--ink); font-weight: 500; }
.offer p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.offer ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }

/* Journey arc */
.trajectory { padding-block: 56px 32px; }
.traj { position: relative; height: 330px; margin-top: 8px; }
.traj svg { position: absolute; inset: 0 0 auto 0; width: 100%; height: 170px; overflow: visible; }
html[dir="rtl"] .traj svg { transform: scaleX(-1); }
.traj .arc { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.traj .dots { position: absolute; inset: 0 0 auto 0; height: 170px; }
.traj .dot { position: absolute; inset-inline-start: var(--x); top: calc(var(--y) * 1px); width: 16px; height: 16px; margin-top: -8px; margin-inline-start: -8px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.traj .dot.red { border-color: var(--red); }
.traj .dot.green { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 7px color-mix(in srgb, var(--green) 20%, transparent); }
.traj ol { list-style: none; margin: 0; padding: 0; }
.traj li { position: absolute; top: calc(var(--y) * 1px + 24px); inset-inline-start: var(--x); width: 22%; transform: translateX(-50%); text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
html[dir="rtl"] .traj li { transform: translateX(50%); }
.traj li b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.traj li .org { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.traj li.red b { color: var(--red); }
.traj li.green b { color: var(--green); }
@media (max-width: 820px) {
  .traj { height: auto; }
  .traj svg, .traj .dots { display: none; }
  .traj ol { border-inline-start: 3px solid; border-image: linear-gradient(var(--red), var(--blue), var(--green)) 1; padding-inline-start: 22px; display: grid; gap: 20px; }
  .traj li, html[dir="rtl"] .traj li { position: relative; inset: auto; width: auto; transform: none; text-align: start; font-size: 15.5px; }
  .traj li::before { content: ""; position: absolute; inset-inline-start: -32px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
  .traj li.red::before { border-color: var(--red); }
  .traj li.green::before { background: var(--green); border-color: var(--green); }
}
@media (prefers-reduced-motion: no-preference) {
  .traj .arc { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s 0.2s cubic-bezier(.4,0,.2,1) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Simple lists */
.focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 36px; margin: 0; padding: 0; list-style: none; }
.focus li p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Wird */
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .project { grid-template-columns: 1fr; } }
.project .shots { display: flex; gap: 14px; justify-content: center; }
.project .shots img { width: 46%; max-width: 230px; border-radius: 18px; box-shadow: 0 18px 40px rgba(19, 33, 61, 0.18); }
.project .shots img:nth-child(2) { transform: translateY(28px); }

/* Provider band */
.band { background: var(--blue-soft); border-top: 0 !important; }
.band + section { border-top: 0; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band-row .prose { margin-top: 10px; max-width: 60ch; }

/* Name story */
/* Questions */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
html[dir="rtl"] .faq summary { padding: 16px 0 16px 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 62ch; }

/* Forms */
.early { background: var(--surface); }
.signup { max-width: 640px; }
.signup .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 600px) { .signup .grid { grid-template-columns: 1fr; } }
.signup .wide { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--ink); margin: 0; }
fieldset.f { border: 0; padding: 0; min-width: 0; }
fieldset.f legend { padding: 0; margin-bottom: 6px; }
.f input, .f select, .f textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
.f textarea { resize: vertical; min-height: 96px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.f [aria-invalid="true"] { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 400; cursor: pointer; background: var(--paper); }
.chip:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.chip input { accent-color: var(--blue); margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: 14.5px; color: var(--ink-2); }
.consent input { margin-top: 5px; accent-color: var(--green); flex: none; width: 18px; height: 18px; }
.consent.invalid span { color: var(--red); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 500; min-height: 1.5em; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.foot a { color: var(--muted); }
.foot picture img { width: 22px; height: 22px; }

/* Document pages (privacy, Wird) */
.doc { padding-block: 56px 72px; }
.doc h1 { font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3rem); line-height: 1.12; margin: 0 0 10px; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] .doc h1, .doc [lang="ar"] h1 { letter-spacing: 0; line-height: 1.4; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc .body { max-width: var(--measure); color: var(--ink-2); }
.doc .body li { margin-bottom: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.doc [lang="ar"] { font-family: var(--arabic); line-height: 1.9; }
.shots-row { display: flex; gap: 16px; margin: 32px 0 8px; overflow-x: auto; padding-bottom: 6px; }
.shots-row img { width: 240px; flex: none; border-radius: 16px; box-shadow: 0 14px 34px rgba(19, 33, 61, 0.16); }

/* Two paths on the home page */
.group { margin-top: 30px; }
.group + .group { margin-top: 48px; }
.group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.group-head h3 { font-size: 1.45rem; margin: 0 0 4px; }
.group-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.offers.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .offers.n2 { grid-template-columns: 1fr; } }
.group.org .offer.consult { border-top-color: var(--blue); }
.group.org .offer.apps { border-top-color: var(--green); }
.early.alt { background: var(--paper); }

/* Outcomes */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) { .outcomes { grid-template-columns: 1fr; } }
.outcomes .where { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.outcomes p { margin: 0; color: var(--ink-2); font-size: 16px; }
.outcomes strong { color: var(--ink); font-weight: 600; }
