/* Ukhti Care - tokens from the design file */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500 600; font-display: swap; src: url(/fonts/cormorant-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Jost'; font-weight: 400 500; font-display: swap; src: url(/fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Amiri'; font-weight: 400; font-display: swap; src: url(/fonts/amiri-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Amiri'; font-weight: 400; font-display: swap; src: url(/fonts/amiri-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
/* Logo-only subsets: Amiri Bold for أختي, Cormorant italic for "Care" */
@font-face { font-family: 'Amiri'; font-weight: 700; font-display: block; src: url(/fonts/amiri-bold-logo.woff2) format('woff2'); unicode-range: U+623, U+626-627, U+62a, U+62e, U+64a, U+654; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: block; src: url(/fonts/cormorant-italic-logo.woff2) format('woff2'); unicode-range: U+43, U+61, U+65, U+72; }

:root {
  --surface-100: #fbf8f4; --surface-200: #f3ebe2; --hairline: #e2d5c8;
  --ink: #2f1d28; --ink-muted: #6b5560;
  --rose: #a24d58; --rose-dark: #8c3f4a; --rose-soft: #efd3cf;
  --plum: #5e2a4c; --sage: #7d8f6f; --sage-soft: #dde4d3; --clay: #c2774f;
  --radius-sm: 6px; --radius-md: 16px; --radius-pill: 999px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', 'Avenir Next', system-ui, sans-serif;
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%235e2a4c' stroke-opacity='.07'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%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; background: var(--surface-100); color: var(--ink); font: 400 16px/26px var(--font-sans); }
h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

/* Arabic page */
[lang="ar"] body, html[lang="ar"] body { font-family: var(--font-arabic); font-size: 18px; line-height: 32px; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .logo, html[lang="ar"] .quote { font-family: var(--font-arabic); font-weight: 400; letter-spacing: 0; }
html[lang="ar"] .eyebrow, html[lang="ar"] .place { letter-spacing: 0; font-size: 15px; }
html[lang="ar"] .logo, html[lang="ar"] .logo-foot { font-family: var(--font-display); }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 8px; }

.eyebrow, .place { font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .06em; color: var(--ink-muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--surface-100); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; }
.logo { color: var(--plum); text-decoration: none; }
.logo:hover { color: var(--plum); }

/* Bilingual wordmark */
.wm { --wm: 1; display: inline-flex; align-items: center; gap: calc(14px * var(--wm)); color: var(--plum); }
.wm-en { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-display); font-weight: 500; }
.wm-ukhti { font-size: calc(34px * var(--wm)); line-height: calc(30px * var(--wm)); letter-spacing: -.01em; }
.wm-care { font-size: calc(19px * var(--wm)); line-height: calc(21px * var(--wm)); font-style: italic; }
.wm-rule { width: 2px; height: calc(52px * var(--wm)); background: var(--rose); border-radius: var(--radius-pill); }
.wm-ar { font: 700 calc(38px * var(--wm))/calc(48px * var(--wm)) var(--font-arabic); color: var(--rose); }
.site-footer .wm { --wm: .85; color: var(--surface-100); }
.site-footer .wm-rule { background: var(--rose-soft); }
.site-footer .wm-ar { color: var(--rose-soft); }
@media (max-width: 480px) { .site-header .wm { --wm: .8; } }
.bar-end { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.langs { list-style: none; padding: 0; display: flex; gap: 4px; font-size: 14px; }
.langs a, .langs span { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); text-decoration: none; }
.langs a { color: var(--ink-muted); }
.langs a:hover { background: var(--surface-200); color: var(--plum); }
.langs span { background: var(--surface-200); color: var(--plum); font-weight: 500; }
.langs [lang="ar"] { font-family: var(--font-arabic); font-size: 16px; }

/* Hero */
.hero { background: var(--pattern), var(--surface-100); }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 64px 80px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
h1 { font: 500 clamp(38px, 5vw, 52px)/1.08 var(--font-display); letter-spacing: -.01em; color: var(--plum); }
html[lang="ar"] h1 { line-height: 1.5; font-size: clamp(32px, 4.2vw, 44px); }
.lead { font-size: 18px; line-height: 30px; max-width: 540px; }
.note { max-width: 540px; color: var(--ink-muted); }
.bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; }
.bullets svg { flex: 0 0 auto; margin-top: 1px; }
.ico-sage { color: var(--sage); }
.ico-rose { color: var(--rose); }

/* Form card with arch */
.join { flex: 1 1 380px; max-width: 460px; min-width: 0; display: flex; flex-direction: column; scroll-margin-top: 24px; }
.arch { aspect-ratio: 2 / 1; background: var(--surface-200); border: 1px solid var(--hairline); border-bottom: 0; border-radius: 999px 999px 0 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.arch-text { font: 400 26px/40px var(--font-arabic); color: var(--plum); }
.card { background: var(--surface-200); border: 1px solid var(--hairline); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 8px 32px 32px; }
.card-head { text-align: center; display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.card h2, .state h2 { font: 600 28px/34px var(--font-display); color: var(--ink); }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
label, legend { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: .01em; padding: 0; }
.field .muted { font-weight: 400; }
input[type=text], input[type=email], input[type=tel], select {
  height: 48px; width: 100%; padding: 0 14px; border: 1px solid var(--ink-muted); border-radius: var(--radius-sm);
  background: var(--surface-100); color: var(--ink); font: inherit; font-size: 16px;
}
html[lang="ar"] input[dir="ltr"] { text-align: right; }
input::placeholder { color: #a5949c; }
input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); }
.chips legend { margin-bottom: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 6px 14px; border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--surface-100); font-size: 14px; line-height: 20px; font-weight: 400; transition: background .15s, border-color .15s; }
.chip input:checked + span { background: var(--rose-soft); border-color: var(--rose); color: var(--plum); }
.chip input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { color: var(--rose-dark); font-size: 15px; }
.fine { font-size: 13px; line-height: 18px; color: var(--ink-muted); text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--radius-pill); font: inherit; font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dark); color: #fff; }
.btn-rose[disabled] { opacity: .7; cursor: progress; }
form .btn { margin-top: 8px; width: 100%; }
.btn-ghost { background: transparent; color: var(--plum); border: 1px solid var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; }

.state { display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 12px 0 4px; }
.state:focus { outline: none; }
.next, .alt { text-align: start; background: var(--surface-100); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px 20px; }
.next ol { margin-top: 8px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.alt p + p { margin-top: 4px; }
.pill-sage { background: var(--sage-soft); border-radius: var(--radius-md); padding: 14px; }

/* Trust strip */
.trust { border-block: 1px solid var(--hairline); background: var(--surface-200); }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 18px; font-weight: 500; font-size: 15px; }
.trust-row li { display: flex; align-items: center; gap: 8px; }

/* Sections */
.section { padding-block: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section h2 { font: 500 clamp(30px, 3.6vw, 40px)/1.15 var(--font-display); color: var(--plum); }
html[lang="ar"] .section h2 { line-height: 1.6; font-size: clamp(26px, 3vw, 34px); }
h3 { font: 600 24px/30px var(--font-display); color: var(--ink); }
.alt-bg { background: var(--surface-200); }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(94, 42, 76, .35); }
.svc svg { margin-bottom: 6px; }
.svc p { color: var(--ink-muted); }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.num { width: 56px; height: 64px; display: grid; place-items: center; padding-top: 6px; border-radius: 999px 999px 8px 8px; background: var(--plum); color: var(--surface-100); font: 600 26px/1 var(--font-display); margin-bottom: 6px; }
.steps p { color: var(--ink-muted); max-width: 320px; }

.story { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.story-art { flex: 1 1 320px; display: flex; justify-content: center; }
.big-arch { width: min(100%, 360px); aspect-ratio: 3 / 4; border-radius: 999px 999px 16px 16px; background: linear-gradient(170deg, var(--rose-soft), var(--surface-200)); border: 1px solid var(--hairline); display: grid; place-items: center; }
.big-arch span { font: 400 clamp(64px, 9vw, 96px)/1.2 var(--font-arabic); color: var(--plum); }
.story-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.story-copy p:not(.eyebrow) { font-size: 17px; line-height: 29px; }

.plum { background: var(--plum); color: var(--surface-100); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fbf8f4' stroke-opacity='.06'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E"); }
.why { max-width: 760px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.plum .eyebrow { color: var(--rose-soft); }
.plum h2 { color: var(--surface-100); }
.why p:last-child { font-size: 18px; line-height: 30px; opacity: .92; }

.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: 0 0 auto; color: var(--rose); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-muted); max-width: 680px; }

.cta { background: var(--surface-200); border-top: 1px solid var(--hairline); }
.cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta p { max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

.site-footer { background: var(--plum); color: var(--surface-100); }
.site-footer a { color: var(--surface-100); }
.site-footer a:hover { color: var(--rose-soft); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding-block: 32px; font-size: 15px; }

/* Mobile sticky CTA */
.sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 244, .96); border-top: 1px solid var(--hairline); backdrop-filter: blur(8px); }
.sticky[hidden] { display: none; }
.sticky .btn-rose { flex: 1; }
.sticky .icon-only { width: 52px; padding: 0; flex: 0 0 52px; }
@media (min-width: 768px) { .sticky { display: none !important; } }

/* Doc pages */
.doc { padding-block: 56px 80px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: 44px; }
.doc h2 { font: 600 24px/30px var(--font-display); color: var(--plum); margin-top: 16px; }

@media (max-width: 640px) {
  .place { display: none; }
  .hero-grid { padding-block: 40px 56px; gap: 40px; }
  .card { padding: 8px 20px 24px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .trust-row { justify-content: flex-start; display: grid; grid-template-columns: 1fr 1fr; }
  .story { gap: 40px; }
  .big-arch { width: min(100%, 260px); }
  body { padding-bottom: 76px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

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