/* alZahrawi product page. The colours come from the logo (blue #0096ff, light blue #5cbcff, purple #410088). Every
   side is written with logical properties (inline-start/end), so the Arabic page (dir="rtl") mirrors by itself. */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Readex Pro";
    font-style: normal;
    font-display: swap;
    font-weight: 160 700;
    src: url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2-variations"), url("../fonts/readex-pro-arabic-wght-normal.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
    --blue: #0077d9;
    --blue-dark: #0062b3;
    --blue-bright: #0096ff;
    --blue-light: #5cbcff;
    --blue-50: #eef7ff;
    --blue-100: #d9ecff;
    --purple: #410088;
    --purple-soft: #6b3fc4;
    --purple-50: #f4effc;
    --green: #0e9f6e;
    --green-50: #e7f8f1;
    --ink: #0b1b2e;
    --text: #33445c;
    --muted: #5b6b82;
    --line: #e3e9f1;
    --surface: #f6f9fc;
    --white: #ffffff;
    --danger: #b42318;
    --danger-line: #f04438;
    --radius: 18px;
    --radius-small: 12px;
    --shadow-small: 0 1px 2px rgba(11, 27, 46, 0.06), 0 2px 8px rgba(11, 27, 46, 0.05);
    --shadow: 0 2px 6px rgba(11, 27, 46, 0.05), 0 16px 40px -12px rgba(11, 27, 46, 0.18);
    --shadow-large: 0 30px 80px -24px rgba(11, 27, 46, 0.35), 0 8px 24px -8px rgba(11, 27, 46, 0.12);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-arabic: "Readex Pro", "Inter", "Segoe UI", Tahoma, system-ui, sans-serif;
    --container: 1180px;
    --gutter: 24px;
    --header: 68px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 16px);
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html[lang="ar"] body {
    font-family: var(--font-arabic);
    line-height: 1.8;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
    letter-spacing: 0; /* spacing would break the joined Arabic letters */
    line-height: 1.4;
}

p {
    margin: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid rgba(0, 150, 255, 0.45);
    outline-offset: 2px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container-narrow {
    max-width: 860px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-weight: 650;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.button:active {
    transform: translateY(1px);
}

.button-primary {
    background: linear-gradient(180deg, #0a86ec 0%, var(--blue) 100%);
    color: var(--white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(0, 119, 217, 0.75);
}

.button-primary:hover {
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 14px 30px -10px rgba(0, 98, 179, 0.8);
}

.button-ghost {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink);
}

.button-ghost:hover {
    border-color: #c9d6e6;
    background: var(--surface);
    color: var(--ink);
}

.button-white {
    background: var(--white);
    color: var(--blue-dark);
    box-shadow: 0 14px 30px -12px rgba(11, 27, 46, 0.5);
}

.button-white:hover {
    background: var(--blue-50);
    color: var(--blue-dark);
}

.button-small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9375rem;
}

.button-large {
    min-height: 60px;
    padding: 12px 26px;
    font-size: 1.0625rem;
    border-radius: 16px;
}

.button-block {
    width: 100%;
}

.button-badge {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-inline-start: -8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.18);
}

.button-white .button-badge {
    background: var(--blue-50);
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: start;
}

.button-text strong {
    font-weight: 700;
}

.button-text small {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.85;
}

.button[aria-busy="true"] {
    cursor: progress;
    opacity: 0.85;
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(11, 27, 46, 0.45);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 750;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    font-family: var(--font);
}

.brand:hover {
    color: var(--ink);
}

.site-nav {
    display: flex;
    gap: 4px;
    margin-inline-start: auto;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 550;
}

.site-nav a:hover {
    background: var(--surface);
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.site-nav + .header-actions {
    margin-inline-start: 8px;
}

.lang-menu {
    position: relative;
}

.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 550;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lang-menu summary::-webkit-details-marker {
    display: none;
}

.lang-menu summary:hover {
    background: var(--surface);
}

.lang-chevron {
    width: 1em;
    height: 1em;
    transition: transform 0.2s ease;
}

.lang-menu[open] .lang-chevron {
    transform: rotate(180deg);
}

.lang-list {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.lang-list a {
    display: block;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text);
    font-weight: 550;
}

.lang-list a:hover {
    background: var(--surface);
    color: var(--ink);
}

.lang-list a[aria-current] {
    background: var(--blue-50);
    color: var(--blue-dark);
}

.lang-list a[lang="ar"] {
    font-family: var(--font-arabic);
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 72px;
    background:
        radial-gradient(48% 60% at 88% 8%, rgba(92, 188, 255, 0.32) 0%, rgba(92, 188, 255, 0) 70%),
        radial-gradient(40% 50% at 4% 0%, rgba(65, 0, 136, 0.10) 0%, rgba(65, 0, 136, 0) 70%),
        linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(11, 27, 46, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--blue-100);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--blue-dark);
    font-size: 0.875rem;
    font-weight: 600;
}

[dir="rtl"] .eyebrow {
    padding: 6px 10px 6px 14px;
}

.eyebrow .icon {
    width: 1.1em;
    height: 1.1em;
}

.hero h1 {
    margin-top: 20px;
    font-size: clamp(2.1rem, 3.9vw, 3.15rem);
    font-weight: 780;
}

.hero .lead {
    margin-top: 20px;
    max-width: 590px;
    font-size: 1.1875rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-meta,
.hero-mobile-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9375rem;
}

.hero-mobile-note {
    display: none;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-dark);
}

.hero-mobile-note .icon {
    margin-top: 2px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 550;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-points .icon {
    color: var(--green);
}

/* The window of the application, with a screenshot (assets/screenshots/hero.png) or a sketch until there is one. */
.hero-visual {
    position: relative;
    padding: 28px 8px;
}

.app-window {
    position: relative;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid rgba(11, 27, 46, 0.08);
    box-shadow: var(--shadow-large);
    overflow: hidden;
    transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
    transform-origin: center;
}

[dir="rtl"] .app-window {
    transform: perspective(1600px) rotateY(4deg) rotateX(2deg);
}

.app-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding-inline: 12px;
    background: linear-gradient(180deg, #fbfdff, #f1f5fa);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
}

.app-window-controls {
    display: flex;
    gap: 14px;
    margin-inline-start: auto;
}

.app-window-controls i {
    width: 10px;
    height: 10px;
    border: 1.5px solid #9aa9bd;
    border-radius: 2px;
}

.app-window-controls i:first-child {
    height: 0;
    border-width: 1.5px 0 0;
    margin-top: 5px;
}

.app-window-controls i:last-child {
    border: 0;
    background:
        linear-gradient(45deg, transparent 44%, #9aa9bd 44%, #9aa9bd 56%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, #9aa9bd 44%, #9aa9bd 56%, transparent 56%);
}

.app-window-shot {
    display: block;
    width: 100%;
}

.app-window-sketch {
    display: grid;
    grid-template-columns: 22% 1fr;
    aspect-ratio: 16 / 10.5;
    background: #f8fafd;
}

.sketch-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
    background: linear-gradient(180deg, #0c2a4a, #0b1b2e);
}

.sketch-side i {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
}

.sketch-side i.sketch-avatar {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--blue-bright), var(--blue-light), var(--blue-bright));
}

.sketch-side i.is-active {
    background: var(--blue-bright);
}

.sketch-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    min-width: 0;
}

.sketch-toolbar {
    display: flex;
    gap: 8px;
}

.sketch-toolbar i {
    display: block;
    width: 18%;
    height: 14px;
    border-radius: 7px;
    background: var(--line);
}

.sketch-toolbar i.is-wide {
    width: 30%;
    margin-inline-start: auto;
    background: var(--blue-100);
}

.sketch-calendar {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.sketch-day {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--line);
}

.sketch-slot {
    display: block;
    height: 16%;
    min-height: 14px;
    border-radius: 6px;
    border-inline-start: 3px solid;
}

.sketch-slot.is-tall {
    height: 28%;
}

.slot-0 { background: var(--blue-50); border-color: var(--blue-bright); }
.slot-1 { background: var(--purple-50); border-color: var(--purple-soft); }
.slot-2 { background: var(--green-50); border-color: var(--green); }
.slot-3 { background: #fff4e5; border-color: #f59e0b; }
.slot-4 { background: transparent; border-color: transparent; }

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 27, 46, 0.06);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: float 7s ease-in-out infinite;
}

[dir="rtl"] .float-card {
    padding: 12px 12px 12px 16px;
}

.float-card strong {
    display: block;
    color: var(--ink);
    font-size: 0.875rem;
    line-height: 1.3;
}

.float-card small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.float-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--blue-50);
    color: var(--blue);
}

.float-icon.is-purple {
    background: var(--purple-50);
    color: var(--purple);
}

.float-icon.is-green {
    background: var(--green-50);
    color: var(--green);
}

.float-card-1 {
    top: 0;
    inset-inline-start: -18px;
}

.float-card-2 {
    bottom: 64px;
    inset-inline-end: -14px;
    animation-delay: -2.5s;
}

.float-card-3 {
    bottom: -2px;
    inset-inline-start: 12%;
    animation-delay: -5s;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.5);
    animation: pulse 2s ease-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.5); }
    100% { box-shadow: 0 0 0 8px rgba(14, 159, 110, 0); }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Highlights under the hero */

.highlights {
    border-block: 1px solid var(--line);
    background: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 26px 20px;
}

.highlight + .highlight {
    border-inline-start: 1px solid var(--line);
}

.highlight-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-50), var(--purple-50));
    color: var(--blue);
}

.highlight p {
    display: flex;
    flex-direction: column;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--muted);
}

.highlight strong {
    color: var(--ink);
    font-size: 1rem;
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Sections */

.section {
    padding: 96px 0;
}

.section-soft {
    background: var(--surface);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-head h2 {
    margin-top: 16px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 760;
}

.section-head .eyebrow + h2 {
    margin-top: 16px;
}

.section-head h2:first-child {
    margin-top: 0;
}

.section-head .lead {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.125rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-100);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--purple-50) 100%);
    color: var(--blue);
}

.feature-icon .icon {
    width: 26px;
    height: 26px;
}

.feature-card:nth-child(3n + 2) .feature-icon {
    color: var(--purple-soft);
}

.feature-card h3 {
    margin-top: 20px;
    font-size: 1.1875rem;
    font-weight: 700;
}

.feature-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9875rem;
}

/* The dark band */
.section-dark {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(40% 60% at 90% 0%, rgba(0, 150, 255, 0.28), transparent 70%),
        radial-gradient(40% 60% at 0% 100%, rgba(107, 63, 196, 0.32), transparent 70%),
        #0b1b2e;
    color: rgba(255, 255, 255, 0.78);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pillar {
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.pillar-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-bright), var(--purple-soft));
    color: var(--white);
    box-shadow: 0 12px 30px -12px rgba(0, 150, 255, 0.8);
}

.pillar-icon .icon {
    width: 28px;
    height: 28px;
}

.pillar h3 {
    margin-top: 22px;
    font-size: 1.3125rem;
}

.pillar p {
    margin-top: 12px;
}

.upgrade {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 24px;
    border: 1px dashed rgba(92, 188, 255, 0.45);
    border-radius: var(--radius);
    background: rgba(92, 188, 255, 0.08);
}

.upgrade-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(92, 188, 255, 0.18);
    color: var(--blue-light);
}

.upgrade strong {
    color: var(--white);
}

/* The introduction video: its picture, then the player in the same frame */
.video {
    position: relative;
    max-width: 920px;
    margin: 0 auto 56px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: var(--ink);
    box-shadow: var(--shadow-large);
}

.video-poster {
    position: absolute;
    inset: 0;
    display: block;
    color: var(--white);
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 27, 46, 0.05) 30%, rgba(11, 27, 46, 0.75) 100%);
}

.video-poster:hover {
    color: var(--white);
}

.video-poster:hover img {
    transform: scale(1.02);
}

.video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--purple-soft));
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.video-poster:hover .video-button {
    transform: translate(-50%, -50%) scale(1.07);
}

.video-button svg {
    width: 34px;
    height: 34px;
    margin-inline-start: 4px;
    fill: var(--white);
}

[dir="rtl"] .video-button svg {
    margin-inline-start: 0;
    margin-inline-end: 4px;
}

.video-caption {
    position: absolute;
    inset-inline: 28px;
    bottom: 22px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-caption strong {
    font-size: 1.25rem;
}

.video-caption small {
    font-size: 0.875rem;
    opacity: 0.8;
}

.video-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Screenshots */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.shot {
    margin: 0;
}

.shot-link {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.shot-link img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.shot figcaption {
    margin-top: 14px;
    color: var(--ink);
    font-weight: 600;
    text-align: center;
}

.lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(6, 14, 24, 0.96);
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 100%;
    margin: 0;
    padding: 64px 72px 32px;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-figure figcaption {
    color: var(--white);
    font-weight: 600;
}

.lightbox-button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
}

.lightbox-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
    top: 16px;
    inset-inline-end: 16px;
}

.lightbox-previous,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-previous {
    inset-inline-start: 14px;
}

.lightbox-next {
    inset-inline-end: 14px;
}

/* Steps */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.steps::before {
    content: "";
    position: absolute;
    top: 28px;
    inset-inline: 16.6%;
    border-top: 2px dashed #c6d6ea;
}

.step {
    position: relative;
    text-align: center;
}

.step-number {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-bright), var(--purple-soft));
    color: var(--white);
    font-size: 1.375rem;
    font-weight: 750;
    font-family: var(--font);
    box-shadow: 0 0 0 8px var(--surface), 0 12px 24px -10px rgba(0, 119, 217, 0.7);
}

.step h3 {
    margin-top: 22px;
    font-size: 1.25rem;
}

.step p {
    max-width: 320px;
    margin: 10px auto 0;
    color: var(--muted);
}

.steps-action {
    margin-top: 44px;
    text-align: center;
}

/* Questions */
.faq {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--blue);
}

.faq-chevron {
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 4px 24px;
    max-width: 720px;
    color: var(--muted);
}

/* The last call to download */
.cta-section {
    padding: 0 0 24px;
}

.cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 56px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(120deg, var(--blue) 0%, #2b4fd6 55%, var(--purple) 100%);
    color: rgba(255, 255, 255, 0.86);
    box-shadow: 0 30px 60px -30px rgba(43, 79, 214, 0.7);
}

.cta-card::before,
.cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-card::before {
    width: 340px;
    height: 340px;
    inset-inline-end: -90px;
    top: -150px;
    border: 46px solid rgba(255, 255, 255, 0.08);
}

.cta-card::after {
    width: 90px;
    height: 90px;
    inset-inline-end: 190px;
    bottom: -40px;
    background: rgba(255, 255, 255, 0.1);
}

.cta-text,
.cta-action {
    position: relative;
}

.cta-card h2 {
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-card p {
    margin-top: 10px;
    font-size: 1.125rem;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: none;
}

.cta-meta {
    font-size: 0.875rem !important;
    opacity: 0.85;
}

/* Contact */
.contact-box {
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(92, 188, 255, 0.16), transparent 70%),
        var(--surface);
}

.contact-head {
    max-width: 640px;
}

.contact-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.contact-head .lead {
    margin-top: 10px;
    color: var(--muted);
    font-size: 1.125rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-100);
    box-shadow: var(--shadow);
    color: var(--text);
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue);
}

.contact-label {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-value {
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

[dir="rtl"] .contact-value[dir="ltr"] {
    text-align: end;
}

/* Footer */
.site-footer {
    padding: 40px 0 48px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-brand strong {
    color: var(--ink);
    font-size: 1.0625rem;
    font-family: var(--font);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: end;
}

.footer-meta a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-meta a:hover {
    color: var(--ink);
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* The download dialog */

.dialog {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--shadow-large);
    overflow: auto;
}

.dialog::backdrop {
    background: rgba(11, 27, 46, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Opened without script (./?download=1): not modal, so it covers the page itself. */
.dialog[open]:not(:modal) {
    position: fixed;
    inset: 0;
    z-index: 80;
    margin: auto;
    box-shadow: 0 0 0 100vmax rgba(11, 27, 46, 0.55), var(--shadow-large);
}

.dialog[open] {
    animation: dialog-in 0.22s ease-out;
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.dialog-card {
    position: relative;
    padding: 32px;
}

.dialog-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--muted);
}

.dialog-close:hover {
    background: var(--surface);
    color: var(--ink);
}

.dialog-head {
    text-align: center;
}

.dialog-badge,
.done-badge {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-bright), var(--purple-soft));
    color: var(--white);
    box-shadow: 0 12px 26px -12px rgba(0, 119, 217, 0.8);
}

.dialog-badge .icon,
.done-badge .icon {
    width: 28px;
    height: 28px;
}

.done-badge {
    background: var(--green);
    box-shadow: 0 12px 26px -12px rgba(14, 159, 110, 0.8);
}

.dialog h2 {
    margin-top: 16px;
    font-size: 1.5rem;
}

.dialog-head p {
    margin-top: 8px;
    color: var(--muted);
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
    color: #94a3b8;
}

[dir="rtl"] .field input[dir="ltr"]:placeholder-shown {
    text-align: end;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue-bright);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 150, 255, 0.18);
}

.select {
    position: relative;
}

.select select {
    -webkit-appearance: none;
    appearance: none;
    padding-inline-end: 44px;
    cursor: pointer;
}

.select .icon {
    position: absolute;
    top: 50%;
    inset-inline-end: 14px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.field-error {
    display: none;
    color: var(--danger);
    font-size: 0.875rem;
}

.field.is-invalid input,
.field.is-invalid select {
    border-color: var(--danger-line);
}

.field.is-invalid input:focus,
.field.is-invalid select:focus {
    box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.15);
}

.field.is-invalid .field-error {
    display: block;
}

.form-error {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef3f2;
    color: var(--danger);
    font-size: 0.9375rem;
}

.field-trap {
    position: absolute;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.download-form .button {
    margin-top: 6px;
    min-height: 54px;
    font-size: 1.0625rem;
}

.form-meta {
    margin-top: -6px;
    color: var(--muted);
    font-size: 0.8125rem;
    text-align: center;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.form-privacy .icon {
    width: 1.1em;
    height: 1.1em;
    margin-top: 1px;
}

.dialog-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.dialog-done h2 {
    margin-top: 8px;
}

.dialog-done h2:focus {
    outline: none;
}

.dialog-done p {
    color: var(--muted);
}

.dialog-done .button-primary {
    margin-top: 8px;
    white-space: normal;
}

.done-next {
    font-size: 0.9375rem;
}

/* The "thank you" page (download form sent without script) */
.thanks {
    padding: 80px 0 96px;
    background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
}

.thanks-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.thanks-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.thanks-card .button {
    white-space: normal;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.icon-back {
    transform: scaleX(-1);
}

[dir="rtl"] .icon-back {
    transform: none;
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Appearing while scrolling (only with the script: without it, everything is shown) */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

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

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Smaller screens */

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

    .site-nav + .header-actions {
        margin-inline-start: auto;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero-text {
        max-width: 680px;
    }

    .hero-visual {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .highlight:nth-child(3) {
        border-inline-start: 0;
    }

    .highlight:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .feature-grid,
    .pillar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pillar:last-child {
        grid-column: 1 / -1;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 44px;
    }

    .cta-action {
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
        --header: 60px;
    }

    body {
        font-size: 1rem;
    }

    .brand-name {
        display: none;
    }

    .lang-current {
        display: none;
    }

    .hero {
        padding: 32px 0 48px;
    }

    .hero .lead {
        font-size: 1.0625rem;
    }

    .hero-actions .button {
        width: 100%;
        justify-content: center;
    }

    .hero-actions .button-primary {
        justify-content: flex-start;
    }

    .hero-meta {
        align-items: flex-start;
    }

    .hero-meta .icon {
        margin-top: 2px;
    }

    .hero-visual {
        padding: 20px 0;
    }

    .app-window,
    [dir="rtl"] .app-window {
        transform: none;
    }

    .float-card {
        padding: 8px 12px 8px 8px;
        gap: 8px;
    }

    [dir="rtl"] .float-card {
        padding: 8px 8px 8px 12px;
    }

    .float-card-1 {
        inset-inline-start: -4px;
        top: 0;
    }

    .float-card-2 {
        inset-inline-end: -4px;
        bottom: 40px;
    }

    .float-card-3 {
        display: none;
    }

    .float-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .highlights-grid,
    .feature-grid,
    .pillar-grid,
    .contact-grid,
    .gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .highlight,
    .highlight:nth-child(3) {
        border-inline-start: 0 !important;
        padding: 18px 0;
    }

    .highlight + .highlight {
        border-top: 1px solid var(--line);
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .feature-card {
        padding: 22px;
    }

    .video {
        margin-bottom: 36px;
        border-radius: 16px;
    }

    .video-button {
        width: 64px;
        height: 64px;
    }

    .video-button svg {
        width: 26px;
        height: 26px;
    }

    .video-caption {
        inset-inline: 16px;
        bottom: 12px;
    }

    .video-caption strong {
        font-size: 1rem;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .steps::before {
        display: none;
    }

    .cta-card {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .cta-action,
    .cta-action .button {
        width: 100%;
    }

    .cta-action .button {
        justify-content: flex-start;
    }

    .contact-box {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-meta {
        text-align: start;
    }

    .dialog-card {
        padding: 28px 20px 24px;
    }

    .lightbox-figure {
        padding: 64px 12px 24px;
    }

    .lightbox-previous,
    .lightbox-next {
        top: auto;
        bottom: 16px;
        transform: none;
    }
}

/* On a phone or a tablet, say that alZahrawi runs on Windows PCs. */
@media (hover: none) and (pointer: coarse) {
    .hero-mobile-note {
        display: flex;
    }
}
