/* Ethos Digital — site styles, coded from the EthosDigital-Org Figma file.
   Breakpoints follow the Figma frames: Desktop 1440 (≥1200px), Tablet 810 (600–1199px), Mobile 390 (<600px).
   Font sizes and line heights are in rem so the "Increase text" tool scales them (Figma: "Home — Text size 150%"). */

/* ------------------------------------------------------------------ tokens (Figma paint/effect styles) */
:root {
    --indigo: #210082;            /* Brand/Indigo */
    --blue: #0098ff;              /* Brand/Blue */
    --indigo-20: rgba(33, 0, 130, .2);
    --black: #000;
    --white: #fff;
    --surface: #f5f5f5;           /* Neutral/Surface */
    --black-60: rgba(0, 0, 0, .6);
    --divider: rgba(0, 0, 0, .12);
    --ring: rgba(0, 0, 0, .16);
    --accent: #ffe600;            /* Accessibility/Negative Accent */

    --font-display: "Plus Jakarta Sans", "Inter", "Noto Sans Arabic", "Noto Sans SC", system-ui, sans-serif;
    --font-body: "Inter", "Noto Sans Arabic", "Noto Sans SC", system-ui, sans-serif;

    /* Effects */
    --raised: 0 0 1px rgba(0, 0, 0, .3), 0 0 3px rgba(0, 0, 0, .16);
    --raised-pressed: 0 0 1px rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .16);
    --raised-inverse: 0 0 1px rgba(0, 0, 0, .3), 0 0 4px rgba(0, 0, 0, .2);
    --raised-inverse-pressed: 0 0 1px rgba(0, 0, 0, .3), 0 0 1px rgba(0, 0, 0, .2);
    --popover: 0 12px 40px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .1);
    --card: 0 14px 44px rgba(0, 0, 0, .32), 0 0 28px rgba(0, 0, 0, .28);
    --tab: 0 0 0 2px var(--white), 0 0 8px 2px rgba(0, 0, 0, .2);
    --focus: var(--blue);

    /* Scheme-able colours */
    --page-bg: var(--white);
    --text: var(--black);
    --muted: var(--black-60);
    --link: var(--indigo);
    --lang-bar-bg: var(--surface);
    --hover-bg: var(--surface);
    --icon-fill: var(--blue);
    --icon-stroke: var(--indigo);
    --rule: var(--indigo);

    --primary-bg: var(--indigo);
    --primary-fg: var(--white);
    --primary-bg-hover: var(--black);
    --primary-fg-hover: var(--white);
    --inverse-bg: var(--white);
    --inverse-fg: var(--black);
    --inverse-bg-hover: var(--indigo);
    --inverse-fg-hover: var(--white);
    --ghost-fg: var(--white);
    --ghost-ring: var(--white);
    --ghost-ring-width: 1.5px;
    --ghost-bg-hover: var(--white);
    --ghost-fg-hover: var(--black);

    --control-bg: var(--white);
    --control-fg: var(--black);
    --control-border: var(--black);
    --placeholder: var(--black-60);

    --gutter: 48px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 10px;
    background: var(--indigo);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/* ------------------------------------------------------------------ type (Figma text styles) */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4rem;            /* Display/Desktop 64/85 −2.5% */
    line-height: 5.3125rem;
    letter-spacing: -.025em;
}
.h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.5rem;          /* Heading 2/Desktop 40/48 −2% */
    line-height: 3rem;
    letter-spacing: -.02em;
}
.statement {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;          /* Statement/Desktop 24/34 −1.5% */
    line-height: 2.125rem;
    letter-spacing: -.015em;
}
.lead {
    font-size: 1.25rem;         /* Lead/Desktop 20/32 −0.5% */
    line-height: 2rem;
    letter-spacing: -.005em;
}
.body { font-size: 1.125rem; line-height: 1.75rem; }   /* Body/Desktop 18/28 */
.eyebrow {
    font-size: .8125rem;        /* Eyebrow 13/16 +4% uppercase */
    line-height: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.small { font-size: .875rem; line-height: 1.375rem; }  /* Small 14/22 */

:lang(ar) .display, :lang(ar) .h2, :lang(ar) .statement, :lang(ar) .lead,
:lang(ar) .eyebrow, :lang(ar) .legal-heading, :lang(ar) .a11y-title { letter-spacing: 0; }

/* ------------------------------------------------------------------ buttons (Figma: Button) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 3.25em;
    padding: .875em 1.5em;      /* Large: 14/24, radius 12 */
    border: 0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;            /* UI/Button 16/24 Semi Bold */
    line-height: 1.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }

.btn-primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: var(--raised); }
.btn-primary:hover { background: var(--primary-bg-hover); color: var(--primary-fg-hover); }
.btn-primary:active { background: var(--primary-bg-hover); box-shadow: var(--raised-pressed); }

.btn-inverse { background: var(--inverse-bg); color: var(--inverse-fg); box-shadow: var(--raised-inverse); }
.btn-inverse:hover { background: var(--inverse-bg-hover); color: var(--inverse-fg-hover); }
.btn-inverse:active { background: var(--inverse-bg-hover); color: var(--inverse-fg-hover); box-shadow: var(--raised-inverse-pressed); }

.btn-ghost { background: transparent; color: var(--ghost-fg); box-shadow: inset 0 0 0 var(--ghost-ring-width) var(--ghost-ring); }
.btn-ghost:hover, .btn-ghost:active { background: var(--ghost-bg-hover); color: var(--ghost-fg-hover); }

/* ------------------------------------------------------------------ section links (Figma: Section Link) */
.section-link {
    color: inherit;
    text-decoration: none;
}
.section-link span {
    position: relative;
    display: inline-block;
}
.section-link span::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform .2s ease;
}
.section-link:hover span::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ form controls (Figma: Input) */
.control {
    display: block;
    width: 100%;
    height: 3.25em;
    padding: 0 1em;             /* 1px border + 16px = Figma 17px */
    border: 1px solid var(--control-border);
    border-radius: 10px;
    background: var(--control-bg);
    color: var(--control-fg);
    font-size: 1rem;            /* UI/Input 16/24 */
    line-height: 1.5rem;
    appearance: none;
}
textarea.control {
    height: 10em;
    padding: .875em 1em;
    resize: vertical;
}
.control::placeholder { color: var(--placeholder); opacity: 1; }
.control:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px var(--focus), inset 0 0 0 1px var(--indigo);   /* Focus/Field */
}
.control[aria-invalid="true"] { border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }

.field {
    display: flex;
    flex-direction: column;
    gap: 8.5px;
    min-width: 0;
}
.field label {
    font-size: .875rem;         /* UI/Label 14/20 Semi Bold */
    line-height: 1.25rem;
    font-weight: 600;
}

.honeypot { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; opacity: 0; }

.form-status {
    flex-basis: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
}
.form-status:empty { display: none; }
.form-status[data-state="sending"]::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: .5em;
    vertical-align: -.15em;
    border: 2px solid var(--indigo-20);         /* Brand/Indigo 20% — form spinner track */
    border-top-color: var(--indigo);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .form-status[data-state="sending"]::before { animation-duration: 2.4s; } }

/* ------------------------------------------------------------------ accessibility widget */
.a11y {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.a11y > * { pointer-events: auto; }

.a11y-toggle {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    background: var(--blue);
    color: var(--white);
    box-shadow: var(--tab);                  /* Elevation/Tab */
    cursor: pointer;
    transition: background-color .15s ease;
}
.a11y-toggle:hover { background: var(--black); }
.a11y-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.a11y-toggle .icon-close,
.a11y-toggle[aria-expanded="true"] .icon-open { display: none; }
.a11y-toggle[aria-expanded="true"] .icon-close { display: block; }

.a11y-panel {
    position: absolute;
    inset-inline-end: 72px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    box-shadow: var(--popover);              /* Elevation/Popover */
}
.a11y-title {
    padding: 10px 12px 6px;
    font-family: var(--font-display);
    font-size: 1.125rem;        /* UI/Panel Title 18/24 −1% */
    line-height: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.a11y-list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 5px;
    background: none;
    font-size: 1rem;            /* UI/Menu Item 16/24 Medium */
    line-height: 1.5rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
}
.a11y-list button svg { flex: none; }
.a11y-list button:hover:not(:disabled) { background: var(--hover-bg); }
.a11y-list button:focus-visible { outline-offset: -3px; }
.a11y-list button:disabled { opacity: .4; cursor: default; }
.a11y-list button[aria-pressed="true"] { color: var(--blue); font-weight: 600; }
.a11y-list button[aria-pressed="true"]::after,
.lang-options a[aria-current]::after {
    content: "";
    flex: none;
    width: 7px;
    height: 12px;
    margin-inline: auto 4px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
.a11y-reset {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--divider);
}

/* ------------------------------------------------------------------ language bar (Figma: Language Bar) */
.lang-bar {
    padding-inline: var(--gutter);
    background: var(--lang-bar-bg);
}
.lang-list {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    column-gap: 32px;
    max-width: 1200px;
    margin-inline: auto;
    padding-block: 5px;
}
.lang-list a {
    display: block;
    padding-block: 4px;
    color: var(--muted);
    font-size: .875rem;         /* UI/Language Bar 14/22 Medium */
    line-height: 1.375rem;
    font-weight: 500;
    text-decoration: none;
}
.lang-list a:hover { color: var(--indigo); }
.lang-list a[aria-current] { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ header (Figma: Header) */
.site-header {
    position: relative;
    z-index: 20;
    padding-inline: var(--gutter);
    background: var(--page-bg);
}
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 42px 33px;
}
.logo { display: block; flex: none; border-radius: 4px; }
.site-header .logo img { width: 339.3px; height: 56px; }

.nav {
    display: flex;
    align-items: center;
    gap: 44px;
}
.nav-links {
    display: flex;
    gap: 40px;
}
.nav-links a {
    display: flex;
    font-size: 1.0625rem;       /* UI/Nav Link 17/24 Medium */
    line-height: 1.5rem;
    font-weight: 500;
}

.header-actions { display: none; }

.lang-button,
.menu-button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text);
    cursor: pointer;
}
.lang-button:hover, .menu-button:hover { background: var(--hover-bg); }
.flag { width: 22px; height: 22px; }
.menu-button .icon-close,
.menu-button[aria-expanded="true"] .icon-menu { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

.lang-menu { position: relative; }
.lang-panel {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline-end: 0;
    z-index: 30;
    width: 200px;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
    color: var(--black);
    box-shadow: var(--popover);
}
.lang-options a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 1rem;            /* UI/Menu Item 16/24 Medium */
    line-height: 1.5rem;
    font-weight: 500;
    text-decoration: none;
}
.lang-options a:hover { background: var(--hover-bg); }
.lang-options a[aria-current] { background: var(--indigo); color: var(--white); font-weight: 600; }
.lang-code {
    flex: none;
    width: 28px;
    font-size: .875rem;         /* UI/Language Code 14/24 Bold +3% */
    line-height: 1.5rem;
    font-weight: 700;
    letter-spacing: .03em;
}

/* ------------------------------------------------------------------ hero (Figma: Hero) */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 136px var(--gutter) 144px;
    background: var(--black);
    color: var(--white);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::before {                 /* Overlay/Hero · Desktop */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .7) 50%, rgba(0, 0, 0, .15));
}
[dir="rtl"] .hero::before { background: linear-gradient(to left, rgba(0, 0, 0, .9), rgba(0, 0, 0, .7) 50%, rgba(0, 0, 0, .15)); }
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 840px;
}
.hero .lead { max-width: 680px; }
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
}

/* ------------------------------------------------------------------ about (Figma: About) */
.about { padding: 112px var(--gutter); }
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr);
    gap: 56px;
}
.about-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
#public-benefit { justify-content: center; }
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rule { background: var(--rule); }
.highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.highlights li {
    display: flex;
    flex-direction: column;
    gap: 11.5px;
    font-size: .9375rem;        /* UI/Footer Link 15/24 Medium */
    line-height: 1.5rem;
    font-weight: 500;
}
.highlights svg { flex: none; }
.i-fill { fill: var(--icon-fill); }
.i-stroke { stroke: var(--icon-stroke); }

/* ------------------------------------------------------------------ subscribe (Figma: Subscribe) */
.subscribe { padding: 0 var(--gutter) 112px; }
.subscribe-panel {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 56px 64px;
    background: var(--blue);
}
.subscribe-heading {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--indigo);
}
.subscribe-form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    flex: none;
    max-width: 100%;
}
.subscribe-form .field { width: 360px; max-width: 100%; }
.subscribe .form-status { color: var(--indigo); }

/* ------------------------------------------------------------------ contact (Figma: Contact) */
.contact {
    padding: 112px var(--gutter);
    background: var(--indigo);
    color: var(--white);
}
.contact-grid {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.contact .section-heading {
    flex: none;
    width: 486px;
}
.contact .section-heading .body { max-width: 400px; }
.contact-form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
    border-radius: 20px;
    background: var(--white);
    color: var(--black);
    box-shadow: var(--card);                 /* Elevation/Card */
}
.form-row {
    display: flex;
    gap: 24px;
}
.form-row .field { flex: 1 1 0; }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* ------------------------------------------------------------------ footer (Figma: Footer) */
.site-footer {
    padding: 56px var(--gutter) 48px;
    background: var(--page-bg);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-footer .logo img { width: 218.1px; height: 36px; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
}
.footer-links a {
    display: flex;
    font-size: .9375rem;        /* UI/Footer Link 15/24 Medium */
    line-height: 1.5rem;
    font-weight: 500;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: .875rem;         /* Small 14/22 */
    line-height: 1.375rem;
}
.copyright { color: var(--muted); }
.footer-legal { color: var(--text); text-underline-offset: .15em; }
.footer-legal:hover { color: var(--indigo); }
.footer-legal[aria-current] { font-weight: 600; text-decoration: none; }

/* ------------------------------------------------------------------ privacy policy (Figma: Privacy Content) */
.legal { padding: 88px var(--gutter) 120px; }
.legal-text {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 736px;
}
.legal-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.legal-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-updated, .legal-note { color: var(--muted); }
.legal-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;          /* Legal Heading/Desktop & Tablet 24/32 −1% */
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.legal-text p, .legal-text li { font-size: 1.125rem; line-height: 1.75rem; }
.legal-text ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-inline-start: 20px;
}
.legal-text li { position: relative; }
.legal-text li::before {
    content: "";
    position: absolute;
    inset-inline-start: -1.0625em;
    top: .68em;
    width: .3125em;
    height: .3125em;
    border-radius: 50%;
    background: currentColor;
}
.legal-text a { color: var(--link); text-underline-offset: .15em; }
.legal-text a:hover { text-decoration-thickness: 2px; }

/* ================================================================== Tablet · 810 (600–1199px) */
@media (max-width: 1199px) {
    .display { font-size: 3rem; line-height: 4rem; }                                    /* Display/Tablet 48/64 */
    .h2 { font-size: 2.125rem; line-height: 2.625rem; }                                 /* Heading 2/Tablet 34/42 */
    .statement { font-size: 1.625rem; line-height: 2.375rem; }                          /* Statement/Tablet 26/38 */
    .lead { font-size: 1.1875rem; line-height: 1.875rem; }                              /* Lead/Tablet 19/30 */
    .body, .legal-text p, .legal-text li { font-size: 1.0625rem; line-height: 1.6875rem; }  /* Body/Tablet 17/27 */

    .lang-list { column-gap: 24px; }

    .header-inner { padding-block: 30px 24px; }
    .site-header .logo img { width: 230.2px; height: 38px; }
    .nav { gap: 24px; }
    .nav-links { gap: 20px; }
    .btn-header { min-height: 2.75em; padding: .625em 1.25em; border-radius: 10px; }   /* Button Small 10/20, radius 10 */

    .hero { padding-block: 104px 112px; }
    .hero::before { background: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .76) 50%, rgba(0, 0, 0, .4)); }   /* Overlay/Hero · Tablet */
    [dir="rtl"] .hero::before { background: linear-gradient(to left, rgba(0, 0, 0, .9), rgba(0, 0, 0, .76) 50%, rgba(0, 0, 0, .4)); }
    .hero-content { gap: 24px; max-width: 640px; }
    .hero .lead { max-width: 600px; }
    .actions { padding-top: 8px; }

    .about { padding-block: 80px; }
    .about-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .about-col { gap: 24px; }
    #public-benefit { justify-content: flex-start; }
    .rule { height: 2px; }

    .subscribe { padding-bottom: 80px; }
    .subscribe-panel { flex-direction: column; align-items: stretch; gap: 28px; padding: 44px 40px; }
    .subscribe-form .field { flex: 1 1 0; width: auto; }

    .contact { padding-block: 80px; }
    .contact-grid { flex-direction: column; align-items: stretch; gap: 36px; }
    .contact .section-heading { width: auto; }
    .contact .section-heading .body { max-width: none; }
    .contact-form { padding: 32px; }

    .site-footer { padding-block: 48px 40px; }
    .site-footer .logo img { width: 206px; height: 34px; }
    .footer-links { column-gap: 24px; }

    .legal { padding-block: 64px 88px; }
    .legal-text { max-width: none; }
}

/* ================================================================== Mobile · 390 (<600px) */
@media (max-width: 599px) {
    :root { --gutter: 20px; }

    .display { font-size: 2.125rem; line-height: 2.8125rem; letter-spacing: -.02em; }  /* Display/Mobile 34/45 −2% */
    .h2 { font-size: 1.75rem; line-height: 2.25rem; letter-spacing: -.015em; }          /* Heading 2/Mobile 28/36 −1.5% */
    .statement { font-size: 1.25rem; line-height: 1.875rem; letter-spacing: -.01em; }  /* Statement/Mobile 20/30 −1% */
    .lead { font-size: 1.0625rem; line-height: 1.75rem; letter-spacing: 0; }           /* Lead/Mobile 17/28 */
    .body, .legal-text p, .legal-text li { font-size: 1rem; line-height: 1.625rem; }   /* Body/Mobile 16/26 */

    .lang-bar { display: none; }

    /* Header: logo + language button + menu button; nav collapses into the menu */
    .header-inner { padding-block: 21px 15px; }
    .site-header .logo img { width: 218.1px; height: 36px; }
    .header-actions { display: flex; gap: 4px; }
    .nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .site-header[data-menu-open] .nav,
    html:not(.js) .nav { display: flex; }
    html:not(.js) .header-actions { display: none; }
    .nav-links { flex-direction: column; gap: 0; }
    .nav-links a { padding-block: 12px; }
    .btn-header { min-height: 3.25em; padding: .875em 1.5em; border-radius: 12px; }

    /* Hero: stacked full-width buttons; on mobile the outline button comes first (Figma: Hero · Mobile) */
    .hero { padding-block: 80px 88px; }
    .hero::before { background: linear-gradient(to right, rgba(0, 0, 0, .86), rgba(0, 0, 0, .78) 50%, rgba(0, 0, 0, .66)); }  /* Overlay/Hero · Mobile */
    [dir="rtl"] .hero::before { background: linear-gradient(to left, rgba(0, 0, 0, .86), rgba(0, 0, 0, .78) 50%, rgba(0, 0, 0, .66)); }
    .hero-content { gap: 20px; }
    .actions { flex-direction: column; gap: 12px; }
    .actions .btn { width: 100%; }
    .hero-subscribe { background: transparent; color: var(--ghost-fg); box-shadow: inset 0 0 0 var(--ghost-ring-width) var(--ghost-ring); }
    .hero-subscribe:hover, .hero-subscribe:active { background: var(--ghost-bg-hover); color: var(--ghost-fg-hover); box-shadow: inset 0 0 0 var(--ghost-ring-width) var(--ghost-ring); }
    .hero-contact { background: var(--inverse-bg); color: var(--inverse-fg); box-shadow: var(--raised-inverse); }
    .hero-contact:hover { background: var(--inverse-bg-hover); color: var(--inverse-fg-hover); }
    .hero-contact:active { background: var(--inverse-bg-hover); color: var(--inverse-fg-hover); box-shadow: var(--raised-inverse-pressed); }

    .about { padding-block: 64px; }
    .about-grid { gap: 44px; }
    .highlights { display: flex; flex-direction: column; gap: 14px; }
    .highlights li {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        font-size: 1.0625rem;   /* UI/Nav Link 17/24 Medium */
    }

    .subscribe { padding-bottom: 64px; }
    .subscribe-panel { gap: 24px; padding: 32px 24px; }
    .subscribe-form { flex-direction: column; align-items: stretch; }
    .subscribe-form .field { flex: none; }
    .subscribe-form .btn { width: 100%; }

    .contact { padding-block: 64px; }
    .contact-grid { gap: 28px; }
    .contact-form { padding: 24px 20px; border-radius: 16px; }
    .form-row { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    .site-footer { padding-block: 40px 32px; }
    .footer-inner { gap: 24px; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .site-footer .logo img { width: 181.8px; height: 30px; }
    .footer-links { column-gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8.5px; }

    .legal { padding-block: 48px 64px; }
    .legal-text { gap: 40px; }
    .legal-heading { font-size: 1.25rem; line-height: 1.75rem; }    /* Legal Heading/Mobile 20/28 */
}

/* ================================================================== accessibility tools */

/* Text size (100 → 200%). Spacing stays fixed; text, buttons and fields grow. */
html[data-text-size="2"] { font-size: 125%; }
html[data-text-size="3"] { font-size: 150%; }
html[data-text-size="4"] { font-size: 175%; }
html[data-text-size="5"] { font-size: 200%; }

/* Underline links */
html[data-underline] a:not(.btn):not(.skip-link) { text-decoration: underline; text-underline-offset: .2em; }
html[data-underline] .section-link span { text-decoration: underline; text-underline-offset: .2em; }
html[data-underline] .lang-options a { text-decoration: underline; }
html[data-scheme] .lang-list a:not([aria-current]),
html[data-text-size] .lang-list a:not([aria-current]) { text-decoration: underline; text-underline-offset: .2em; }

/* Readable font */
html[data-readable] {
    --font-display: Verdana, "Noto Sans Arabic", "Noto Sans SC", Tahoma, system-ui, sans-serif;
    --font-body: Verdana, "Noto Sans Arabic", "Noto Sans SC", Tahoma, system-ui, sans-serif;
}
html[data-readable] body { word-spacing: .06em; }
html[data-readable] .display, html[data-readable] .h2, html[data-readable] .statement,
html[data-readable] .legal-heading, html[data-readable] .a11y-title { letter-spacing: 0; }

/* Grayscale */
html[data-scheme="gray"] { filter: grayscale(1); }

/* Shared by the three colour schemes (Figma: ♿ States & Accessibility): flat, outlined surfaces */
html[data-scheme="contrast"], html[data-scheme="negative"], html[data-scheme="light"] {
    --raised: none;
    --raised-pressed: none;
    --raised-inverse: none;
    --raised-inverse-pressed: none;
    --card: none;
    --ghost-ring-width: 2px;
}
html[data-scheme="contrast"] .hero-bg, html[data-scheme="contrast"] .hero::before,
html[data-scheme="negative"] .hero-bg, html[data-scheme="negative"] .hero::before,
html[data-scheme="light"] .hero-bg, html[data-scheme="light"] .hero::before { display: none; }

/* High contrast: black on white, black bands with white text */
html[data-scheme="contrast"] {
    --muted: #333;              /* Accessibility/Contrast Muted */
    --placeholder: #333;
    --link: var(--black);
    --lang-bar-bg: var(--white);
    --icon-fill: var(--black);
    --icon-stroke: var(--black);
    --rule: var(--black);
    --primary-bg: var(--black);
    --primary-bg-hover: #333;
    --inverse-bg-hover: #333;
    --tab: 0 0 0 2px var(--white), 0 0 8px 2px rgba(0, 0, 0, .2);
}
html[data-scheme="contrast"] .lang-bar { box-shadow: inset 0 -1px 0 var(--black); }
html[data-scheme="contrast"] .hero,
html[data-scheme="contrast"] .contact { background: var(--black); box-shadow: inset 0 2px 0 var(--white), inset 0 -2px 0 var(--white); }
html[data-scheme="contrast"] .subscribe-panel { background: var(--white); box-shadow: inset 0 0 0 2px var(--black); }
html[data-scheme="contrast"] .subscribe-heading,
html[data-scheme="contrast"] .subscribe .form-status { color: var(--black); }
html[data-scheme="contrast"] .contact-form { box-shadow: inset 0 0 0 2px var(--black); }
html[data-scheme="contrast"] .logo img { filter: brightness(0); }
html[data-scheme="contrast"] .a11y-toggle { background: var(--black); }
html[data-scheme="contrast"] .a11y-panel,
html[data-scheme="contrast"] .lang-panel { box-shadow: inset 0 0 0 2px var(--black); }
html[data-scheme="contrast"] .a11y-list button[aria-pressed="true"] { color: var(--black); font-weight: 700; }
html[data-scheme="contrast"] .lang-options a[aria-current] { background: var(--black); }

/* Negative contrast: white on black, yellow accents */
html[data-scheme="negative"] {
    --page-bg: var(--black);
    --text: var(--white);
    --muted: #ccc;              /* Accessibility/Negative Muted */
    --placeholder: #ccc;
    --link: var(--accent);
    --lang-bar-bg: var(--black);
    --hover-bg: #262626;
    --icon-fill: var(--accent);
    --icon-stroke: var(--white);
    --rule: var(--accent);
    --primary-bg: var(--accent);
    --primary-fg: var(--black);
    --primary-bg-hover: var(--white);
    --primary-fg-hover: var(--black);
    --inverse-bg: var(--accent);
    --inverse-fg: var(--black);
    --inverse-bg-hover: var(--white);
    --inverse-fg-hover: var(--black);
    --control-bg: var(--black);
    --control-fg: var(--white);
    --control-border: var(--white);
    --focus: var(--accent);
    --tab: 0 0 0 2px var(--black), 0 0 8px 2px rgba(255, 255, 255, .2);
}
html[data-scheme="negative"] .lang-bar { box-shadow: inset 0 -1px 0 var(--white); }
html[data-scheme="negative"] .lang-list a:hover { color: var(--accent); }
html[data-scheme="negative"] .hero,
html[data-scheme="negative"] .contact { background: var(--black); box-shadow: inset 0 2px 0 var(--white), inset 0 -2px 0 var(--white); }
html[data-scheme="negative"] .subscribe-panel { background: var(--black); box-shadow: inset 0 0 0 2px var(--white); }
html[data-scheme="negative"] .subscribe-heading,
html[data-scheme="negative"] .subscribe .form-status { color: var(--white); }
html[data-scheme="negative"] .contact-form { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
html[data-scheme="negative"] .control:focus { border-color: var(--white); box-shadow: 0 0 0 3px var(--accent), inset 0 0 0 1px var(--white); }
html[data-scheme="negative"] .form-status[data-state="sending"]::before { border-color: rgba(255, 255, 255, .3); border-top-color: var(--accent); }
html[data-scheme="negative"] .logo img { filter: brightness(0) invert(1); }
html[data-scheme="negative"] .footer-legal:hover { color: var(--accent); }
html[data-scheme="negative"] .section-link span::after { background: var(--accent); }
html[data-scheme="negative"] .skip-link { background: var(--accent); color: var(--black); }
html[data-scheme="negative"] .a11y-toggle { background: var(--white); color: var(--black); }
html[data-scheme="negative"] .a11y-toggle:hover { background: var(--accent); }
html[data-scheme="negative"] .a11y-panel,
html[data-scheme="negative"] .lang-panel { background: var(--black); color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
html[data-scheme="negative"] .a11y-list button[aria-pressed="true"] { color: var(--accent); }
html[data-scheme="negative"] .a11y-reset { border-top-color: var(--white); }
html[data-scheme="negative"] .lang-options a[aria-current] { background: var(--accent); color: var(--black); }

/* Light background: no dark bands, outlined panels */
html[data-scheme="light"] {
    --muted: #595959;           /* Accessibility/Light Muted */
    --placeholder: #595959;
    --inverse-bg: var(--indigo);
    --inverse-fg: var(--white);
    --inverse-bg-hover: var(--black);
    --ghost-fg: var(--black);
    --ghost-ring: var(--black);
    --ghost-bg-hover: var(--black);
    --ghost-fg-hover: var(--white);
    --tab: 0 0 0 2px var(--white), 0 0 8px 2px rgba(0, 0, 0, .2);
}
html[data-scheme="light"] .hero,
html[data-scheme="light"] .contact { background: var(--white); color: var(--black); box-shadow: inset 0 1px 0 var(--black), inset 0 -1px 0 var(--black); }
html[data-scheme="light"] .subscribe-panel { background: var(--white); box-shadow: inset 0 0 0 1px var(--black); }
html[data-scheme="light"] .subscribe-heading,
html[data-scheme="light"] .subscribe .form-status { color: var(--black); }
html[data-scheme="light"] .contact-form { box-shadow: inset 0 0 0 1px var(--black); }
html[data-scheme="light"] .a11y-toggle { background: var(--black); }
html[data-scheme="light"] .a11y-toggle:hover { background: var(--indigo); }
html[data-scheme="light"] .a11y-panel,
html[data-scheme="light"] .lang-panel { box-shadow: inset 0 0 0 1px var(--black); }

@media print {
    .a11y, .lang-bar, .header-actions, .nav, .hero-bg, .hero::before, .subscribe, .contact-form { display: none !important; }
    .hero, .contact { background: none; color: #000; }
}
