/* ramssa.ae: one stylesheet for the English (ltr) and Arabic (rtl) pages, light and dark.
   Brand colours come from the Ramssa logo. Logical properties (inline-start/end) keep
   the same rules correct in both directions. Every colour is a token. */
:root {
  --navy: #1D2B70;
  --navy-deep: #141E52;
  --teal: #00AEC8;
  --yellow: #FFCB00;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --ink: #14193A;
  --heading: #1D2B70;
  --muted: #56607C;
  --line: #DFE5EF;
  --accent-ink: #007A8C;
  --accent-soft: #E3F6F9;
  --warm-soft: #FFF6D6;
  --warm-line: #F1DE97;
  --header-bg: rgba(246, 248, 251, .92);
  --btn-bg: #1D2B70;
  --btn-ink: #FFFFFF;
  --band: #1D2B70;
  --band-ink: #E6EAF7;
  --band-muted: #C3CBE6;
  --foot: #141E52;
  --shadow: 0 1px 2px rgba(20, 25, 58, .05), 0 12px 32px rgba(20, 25, 58, .07);
  --radius: 22px;
  --max: 1180px;
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
/* Dark palette = the Ramssa app's own dark mode (src/lib/theme.ts darkColors). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1320; --card: #1A2033; --ink: #EEF1F8; --heading: #FFFFFF; --muted: #A3ACC4; --line: #2A324A;
    --accent-ink: #5CC8DC; --accent-soft: #12343B; --warm-soft: #3A2F1C; --warm-line: #5A4A26;
    --header-bg: rgba(15, 19, 32, .9); --btn-bg: #3447A8; --btn-ink: #FFFFFF;
    --band: #1A2033; --band-ink: #EEF1F8; --band-muted: #A3ACC4; --foot: #0B0E18;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1320; --card: #1A2033; --ink: #EEF1F8; --heading: #FFFFFF; --muted: #A3ACC4; --line: #2A324A;
    --accent-ink: #5CC8DC; --accent-soft: #12343B; --warm-soft: #3A2F1C; --warm-line: #5A4A26;
    --header-bg: rgba(15, 19, 32, .9); --btn-bg: #3447A8; --btn-ink: #FFFFFF;
    --band: #1A2033; --band-ink: #EEF1F8; --band-muted: #A3ACC4; --foot: #0B0E18;
    --shadow: none; color-scheme: dark;
}
/* Screenshots: the light set by default, the app's dark-mode set in dark mode. */
.shot-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}
:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; color: var(--heading); }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; z-index: 50; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 10px; }

/* Header + tabs */
.top { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; background: #fff; border-radius: 12px; padding: 4px 8px; }
.brand img { height: 40px; width: auto; }
.tools { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.pill { border: 1.5px solid var(--line); background: var(--card); color: var(--heading); padding: 6px 14px; border-radius: 999px; font: 600 15px var(--font); text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pill:hover { border-color: var(--accent-ink); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 0 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px; padding: 9px 16px; border-radius: 12px; }
.tabs a:hover { color: var(--heading); background: var(--accent-soft); }
.tabs a[aria-current="page"] { background: var(--btn-bg); color: var(--btn-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 600; text-decoration: none; font-size: 17px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-ghost { background: var(--card); color: var(--heading); border: 1.5px solid var(--line); }

/* Page head (every page except home) */
.page-head { padding-block: 32px 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-head .ph-text { flex: 1; min-width: 0; padding-bottom: 12px; }
.page-head .nahyan { flex: none; height: 240px; width: auto; }
@media (max-width: 640px) { .page-head .nahyan { height: 160px; } .page-head { gap: 12px; } }
.kicker { color: var(--accent-ink); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
:lang(ar) .kicker { text-transform: none; letter-spacing: 0; }
.page-head h1 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 6px; }
.page-head p { color: var(--muted); margin-top: 10px; font-size: 19px; max-width: 46em; }
.page-body { padding-block: 24px 64px; }

/* Home hero */
.hero { padding-block: 48px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; margin-block: 16px; letter-spacing: -.01em; }
:lang(ar) .hero h1 { letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.soon { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-art { position: relative; min-height: 600px; }
.phone { width: 260px; border-radius: 38px; background: #0d1230; padding: 9px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phone img { border-radius: 30px; }
.hero-art .phone { position: absolute; inset-inline-end: 6%; top: 0; transform: rotate(2deg); }
[dir="rtl"] .hero-art .phone { transform: rotate(-2deg); }
.hero-art .hero-person { position: absolute; inset-inline-start: 0; bottom: 0; height: 460px; width: auto; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 56px; }
.quick a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 4px; color: var(--ink); box-shadow: var(--shadow); }
.quick a:hover { border-color: var(--accent-ink); }
.quick b { color: var(--heading); font-size: 18px; }
.quick span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 540px; }
  .hero-art .phone { inset-inline-end: 0; transform: none !important; width: 214px; z-index: 1; }
  .hero-art .hero-person { height: 330px; inset-inline-start: 0; z-index: 0; }
  .quick { grid-template-columns: 1fr 1fr; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.step .num { width: 42px; height: 42px; border-radius: 13px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); }
.step .shot { margin-top: auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.step .shot img { width: 100%; height: 330px; object-fit: cover; object-position: top; }
.signs-visual { margin-top: auto; height: 330px; border-radius: 18px; background: linear-gradient(160deg, #1D2B70, #2B3C8F); display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; }
.signs-visual .big { font-size: 64px; line-height: 1; }
.signs-visual p { color: #D6DCF2; margin-top: 12px; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 17px; }
.card .ico { font-size: 28px; margin-bottom: 8px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-top: 48px; }
.split .phone { margin-inline: auto; }
.split h2 { font-size: clamp(26px, 3vw, 34px); }
.split p { color: var(--muted); margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { padding-inline-start: 34px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Band (principles intro) */
.band { background: var(--band); color: var(--band-ink); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 22px; }
.band h2 { color: #fff; font-size: 26px; }
.band p { color: var(--band-muted); margin-top: 8px; }

/* Organisations */
.org { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.org .box { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.org .contact { background: var(--warm-soft); border-color: var(--warm-line); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.org .contact .mail { font-size: 22px; font-weight: 700; color: var(--heading); word-break: break-all; }
@media (max-width: 900px) { .org { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Long-form text (privacy, support) */
.doc { max-width: 820px; }
.doc h2 { font-size: 24px; margin-block: 32px 10px; }
.doc p, .doc li { color: var(--ink); opacity: .92; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 22px; display: grid; gap: 8px; margin: 12px 0; }
.note { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; margin-block: 14px; }
.updated { color: var(--muted); font-size: 15px; }

/* Footer */
.foot { background: var(--foot); color: #C3CBE6; padding-block: 28px 22px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .made a { color: #fff; display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.foot .made img { width: auto; height: 34px; }
.foot .legal { width: 100%; color: #8E99C2; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* A second split with the phone on the other side (stacks text first on phones) */
.split.flip > .phone { order: 0; }
@media (max-width: 900px) { .split.flip > .phone { order: 2; } }
/* Cookie consent (only when GA is configured) */
.cookie-banner { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin-inline: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.cookie-banner p { flex: 1 1 260px; margin: 0; font-size: 15px; }
.cookie-actions { display: flex; gap: 10px; }
.foot .cookie-link { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
.foot .cookie-link:hover { text-decoration: underline; }
/* Nahyan videos (How it works, Videos) */
.step .vid { margin-top: auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.step .vid video { display: block; width: 100%; height: 330px; object-fit: cover; object-position: top; }
.vid-phone video { display: block; width: 100%; height: auto; border-radius: 30px; background: #fff; }
.nahyan-wait { background: #EEECED; }
.sec { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 18px; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: center; box-shadow: var(--shadow); }
.video-card .vid-phone { border-radius: 30px; overflow: hidden; border: 1px solid var(--line); }
.video-card h3 { font-size: 22px; margin-bottom: 8px; }
.video-card p { color: var(--muted); }
.more { color: var(--muted); margin-top: 28px; }
@media (max-width: 1000px) { .videos { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .video-card { grid-template-columns: 1fr; } .video-card .vid-phone { max-width: 280px; margin-inline: auto; } }
/* The featured film at the top of Videos */
.video-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; box-shadow: var(--shadow); margin-bottom: 24px; }
.vid-feature { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.vid-feature video { display: block; width: 100%; height: auto; }
.video-feature h2 { font-size: clamp(26px, 3vw, 34px); margin: 8px 0 10px; }
.video-feature p { color: var(--muted); }
@media (max-width: 760px) { .video-feature { grid-template-columns: 1fr; } .vid-feature { max-width: 320px; margin-inline: auto; } }
