@font-face {
    font-family: "Alexandria";
    src: url("/assets/fonts/alexandria-arabic.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: "Alexandria";
    src: url("/assets/fonts/alexandria-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;
    --cobalt: #1738a0;
    --cobalt-deep: #0f2670;
    --cobalt-pale: #d9e2ff;
    --sun: #ffc93c;
    --sun-deep: #f0b41c;
    --ink: #101a33;
    --muted: #4c5672;
    --ground: #f5f6fa;
    --paper: #ffffff;
    --line: #d8dcea;
    --amina: #1e3d36;
    --amina-deep: #16302a;
    --amina-text: #e9f5ef;
    --amina-soft: #b9d6c9;
    --mint: #c6eddb;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(4rem, 9vw, 7.5rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--cobalt) var(--ground);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: "Alexandria", "Segoe UI", Tahoma, sans-serif;
    font-size: 1.0625rem;
    font-weight: 350;
    line-height: 1.8;
}

html[lang="en"] body {
    line-height: 1.65;
}

::selection {
    background: var(--sun);
    color: var(--ink);
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
}

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
    border-radius: 4px;
}

.privacy-body :focus-visible {
    outline-color: var(--cobalt);
}

.wrap {
    width: min(1120px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip {
    position: absolute;
    inset-block-start: -4rem;
    inset-inline-start: var(--gutter);
    z-index: 5;
    padding: 0.5rem 1rem;
    background: var(--sun);
    color: var(--ink);
}

.skip:focus {
    inset-block-start: 0.5rem;
}

.bar {
    background: var(--cobalt);
    color: #fff;
}

.bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-block-size: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.1875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand img {
    inline-size: 30px;
    block-size: 30px;
    flex: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(0.875rem, 2.5vw, 2rem);
    font-size: 0.9375rem;
}

.nav a {
    text-decoration: none;
    padding-block: 0.625rem;
}

.nav a:hover {
    text-decoration: underline;
}

.nav .lang {
    padding: 0.3125rem 0.875rem;
    border: 1px solid rgb(255 255 255 / 0.55);
    border-radius: 999px;
}

.nav .lang:hover {
    background: #fff;
    color: var(--cobalt);
    text-decoration: none;
}

.hero {
    background: var(--cobalt);
    color: #fff;
    padding-block-start: clamp(3rem, 8vw, 6.5rem);
}

.hero h1 {
    max-inline-size: 15ch;
    font-size: clamp(2.5rem, 6.6vw, 5.25rem);
    font-weight: 700;
    line-height: 1.22;
    text-wrap: balance;
}

html[lang="en"] .hero h1 {
    max-inline-size: 17ch;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero .lead {
    max-inline-size: 56ch;
    margin-block-start: 1.75rem;
    color: var(--cobalt-pale);
    font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-block-start: 2.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-block-size: 50px;
    padding: 0.5rem 1.625rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--sun);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--sun-deep);
}

.btn-ghost {
    border-color: rgb(255 255 255 / 0.55);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--cobalt);
}

.arrow {
    inline-size: 20px;
    block-size: 20px;
    flex: none;
}

[dir="rtl"] .arrow {
    transform: scaleX(-1);
}

.rail {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.25rem);
    inline-size: min(100%, 720px);
    margin-block-start: clamp(3.5rem, 8vw, 6rem);
    padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 22px 22px 0 0;
    background: var(--amina);
    color: var(--amina-text);
    text-decoration: none;
}

.product-logo {
    inline-size: 52px;
    block-size: 52px;
    flex: none;
    border-radius: 22%;
}

.product-logo-sm {
    inline-size: 28px;
    block-size: 28px;
}

.chat-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rail-name {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
}

.rail-copy {
    flex: 1;
    color: var(--amina-soft);
    font-size: 0.9688rem;
    line-height: 1.6;
}

.rail .arrow {
    transition: translate 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rail:hover .arrow {
    translate: 6px 0;
}

[dir="rtl"] .rail:hover .arrow {
    translate: -6px 0;
}

.amina {
    background: var(--amina);
    color: var(--amina-text);
    padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section);
    scroll-margin-block-start: 1rem;
}

.amina-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
}

.amina h2 {
    max-inline-size: 18ch;
    font-size: clamp(1.875rem, 3.8vw, 3rem);
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

html[lang="en"] .amina h2 {
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.amina-intro {
    max-inline-size: 54ch;
    margin-block-start: 1.25rem;
    color: var(--amina-soft);
}

.abilities {
    margin-block-start: 2.5rem;
    border-block-start: 1px solid rgb(233 245 239 / 0.22);
}

.abilities div {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    gap: 0.25rem 1.5rem;
    padding-block: 1.125rem;
    border-block-end: 1px solid rgb(233 245 239 / 0.22);
}

.abilities dt {
    font-weight: 600;
    line-height: 1.6;
}

.abilities dd {
    color: var(--amina-soft);
    font-size: 0.9844rem;
    line-height: 1.7;
}

.boundary {
    max-inline-size: 58ch;
    margin-block-start: 1.75rem;
    color: var(--amina-soft);
    font-size: 0.9375rem;
}

.amina .actions {
    margin-block-start: 2rem;
}

.chat {
    position: sticky;
    inset-block-start: 2rem;
    margin: 0;
    padding: clamp(1.125rem, 2.5vw, 1.625rem);
    border-radius: 24px;
    background: var(--amina-deep);
}

.chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block-end: 1rem;
    border-block-end: 1px solid rgb(233 245 239 / 0.18);
    font-weight: 600;
}

.chat-note {
    color: var(--amina-soft);
    font-size: 0.8125rem;
    font-weight: 350;
    text-align: end;
}

.chat ol {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-block-start: 1.125rem;
}

.msg {
    max-inline-size: 86%;
    padding: 0.625rem 0.9375rem;
    border-radius: 16px;
    font-size: 0.9688rem;
    line-height: 1.7;
}

.msg-patient {
    align-self: flex-start;
    border-start-start-radius: 4px;
    background: var(--paper);
    color: var(--ink);
}

.msg-amina {
    align-self: flex-end;
    border-start-end-radius: 4px;
    background: var(--mint);
    color: var(--amina-deep);
}

.choices {
    display: flex;
    gap: 0.5rem;
    margin-block-start: 0.5rem;
}

.choices span {
    flex: 1;
    padding: 0.3125rem 0.75rem;
    border: 1px solid rgb(22 48 42 / 0.4);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.has-motion .chat.is-waiting .msg {
    opacity: 0;
    translate: 0 14px;
}

.has-motion .chat .msg {
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), translate 520ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 340ms);
}

.contact h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.35;
}

html[lang="en"] .contact h2 {
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.contact {
    background: var(--cobalt-deep);
    color: #fff;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
    scroll-margin-block-start: 1rem;
}

.contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
}

.contact p {
    margin-block-start: 0.5rem;
    color: var(--cobalt-pale);
}

.mail {
    font-size: clamp(1.375rem, 3.4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-decoration-color: var(--sun);
    text-decoration-thickness: 2px;
}

.mail:hover {
    color: var(--sun);
}

.foot {
    background: var(--cobalt-deep);
    border-block-start: 1px solid rgb(217 226 255 / 0.2);
    color: var(--cobalt-pale);
    font-size: 0.875rem;
}

.foot-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.375rem;
}

.foot nav {
    display: flex;
    gap: 1.5rem;
}

.foot a {
    display: inline-block;
    padding-block: 0.25rem;
}

.page-head {
    background: var(--cobalt);
    color: #fff;
    padding-block: clamp(2.25rem, 5vw, 4rem);
}

.page-head h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.25;
}

html[lang="en"] .page-head h1 {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-head p {
    max-inline-size: 66ch;
    margin-block-start: 1rem;
    color: var(--cobalt-pale);
}

.privacy-body {
    background: var(--paper);
    padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section);
}

.doc {
    max-inline-size: 72ch;
}

.doc section {
    scroll-margin-block-start: 1rem;
}

.doc section + section {
    margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
}

.doc h2 {
    margin-block-end: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.45;
}

.doc h3 {
    margin-block: 1.5rem 0.375rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.doc p + p,
.doc ul + p {
    margin-block-start: 0.875rem;
}

.doc ul {
    margin-block-start: 0.625rem;
}

.doc li {
    position: relative;
    padding-inline-start: 1.25rem;
}

.doc li + li {
    margin-block-start: 0.5rem;
}

.doc li::before {
    position: absolute;
    inset-block-start: 0.78em;
    inset-inline-start: 0;
    inline-size: 6px;
    block-size: 6px;
    border-radius: 50%;
    background: var(--cobalt);
    content: "";
}

.doc a {
    color: var(--cobalt);
}

.doc strong {
    font-weight: 600;
}

.providers {
    inline-size: 100%;
    margin-block-start: 1rem;
    border-collapse: collapse;
    font-size: 0.9688rem;
    line-height: 1.7;
}

.providers th,
.providers td {
    padding: 0.875rem 0;
    padding-inline-end: 1.25rem;
    border-block-end: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
}

.providers thead th {
    border-block-end: 2px solid var(--ink);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.providers tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.after-table {
    margin-block-start: 1rem;
}

.status {
    margin-block-end: 2.5rem;
    padding: 1.125rem 1.375rem;
    border-radius: 14px;
    background: #fff4d2;
    color: #4f3b00;
}

.status strong {
    font-weight: 600;
}

.not-found {
    display: grid;
    place-content: center;
    gap: 1rem;
    min-block-size: 70vh;
    padding: var(--gutter);
    text-align: center;
}

.not-found h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
}

.not-found a {
    color: var(--cobalt);
}

@media (max-width: 880px) {
    .amina-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .chat {
        position: static;
    }
}

@media (max-width: 620px) {
    .nav .nav-extra {
        display: none;
    }

    .hero .actions .btn {
        flex: 1 1 100%;
    }

    .rail {
        flex-wrap: wrap;
        inline-size: 100%;
    }

    .rail-copy {
        flex: 1 1 100%;
        order: 3;
    }

    .rail .arrow {
        margin-inline-start: auto;
    }

    .abilities div {
        grid-template-columns: minmax(0, 1fr);
    }

    .providers thead {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .providers,
    .providers tbody,
    .providers tr,
    .providers th,
    .providers td {
        display: block;
    }

    .providers tr {
        padding-block: 0.875rem;
        border-block-end: 1px solid var(--line);
    }

    .providers th,
    .providers td {
        padding: 0;
        border: 0;
    }

    .providers td {
        margin-block-start: 0.5rem;
    }

    .providers td::before {
        display: block;
        color: var(--muted);
        font-size: 0.8125rem;
        content: attr(data-label);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
