/* OpsVerse site styles. Colour, type and spacing are tokens on :root, with a
   dark set under prefers-color-scheme. Logical properties only, so the same
   rules serve the Arabic page. Values match the app's tokens. */
:root {
  color-scheme: light dark;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "SF Arabic", "Noto Naskh Arabic", "Geeza Pro", system-ui, sans-serif;

  --bg: #ffffff;
  --card: #f5f5f7;
  --fill: rgba(120, 120, 128, 0.12);
  --separator: rgba(60, 60, 67, 0.16);
  --label: #1d1d1f;
  --label-2: #636366;
  --accent: #2f6b57;
  --accent-pressed: #275a49;
  --on-accent: #ffffff;
  --accent-soft: rgba(47, 107, 87, 0.1);
  --header-bg: rgba(255, 255, 255, 0.72);
  --header-blur: saturate(180%) blur(20px);

  --radius-card: 0.875rem;
  --radius-pill: 999px;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem; --space-9: 6rem;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --card: #1c1c1e;
    --fill: rgba(120, 120, 128, 0.24);
    --separator: rgba(84, 84, 88, 0.55);
    --label: #f5f5f7;
    --label-2: #aeaeb2;
    --accent: #6cc3a0;
    --accent-pressed: #5aae8c;
    --on-accent: #06231a;
    --accent-soft: rgba(108, 195, 160, 0.16);
    --header-bg: rgba(15, 16, 18, 0.72);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --header-bg: var(--bg); --header-blur: none; }
}
@media (prefers-contrast: more) {
  :root { --separator: rgba(0, 0, 0, 0.55); --label-2: #3a3a3c; --header-bg: var(--bg); --header-blur: none; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --separator: rgba(255, 255, 255, 0.55); --label-2: #d1d1d6; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg); color: var(--label); font-family: var(--font-sans);
  font-size: 100%; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  transition: background-color 300ms ease, color 300ms ease;
}
html:lang(ar) { font-family: var(--font-arabic); }
body { margin: 0; font-size: 1.0625rem; line-height: 1.5; }

/* Type: hierarchy by size and weight together; tight leading and negative
   tracking on large sizes, comfortable leading and none on body text. */
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin-block: 0 var(--space-5); }
h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; margin-block: var(--space-8) var(--space-3); }
p { margin-block: 0 var(--space-4); }
html:lang(ar) h1, html:lang(ar) h2 { letter-spacing: 0; line-height: 1.35; }
.muted { color: var(--label-2); }
.small { font-size: 0.875rem; line-height: 1.45; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside running text are underlined too, so colour is never the only signal. */
p a:not(.btn), footer a, .cta span a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
p a:not(.btn):hover, footer a:hover, .cta span a:hover { text-decoration-color: currentColor; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.wrap { max-inline-size: 44rem; margin-inline: auto; padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right)); }
@media (min-width: 40rem) { .wrap { padding-inline: var(--space-5); } }

/* Translucent sticky header. Content scrolls under it; a soft fade replaces a hard border. */
.glass {
  position: sticky; inset-block-start: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: var(--header-blur); backdrop-filter: var(--header-blur);
}
.glass::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-start: 100%; block-size: 8px;
  background: linear-gradient(to bottom, var(--separator), transparent); opacity: 0.4; pointer-events: none;
}
/* The header spans the hero's width, so its edges line up with the hero. */
.glass .wrap { max-inline-size: 76rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); block-size: 3.25rem; }
.brand { color: var(--label); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--label-2); font-weight: 400; margin-inline-start: var(--space-2); }
@media (max-width: 30rem) { .brand span { display: none; } }

/* Buttons respond on press: scale 0.97, 100ms, ease-out. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
  border-radius: var(--radius-pill); padding-block: 0.5rem; padding-inline: 1.125rem; white-space: nowrap;
  transition: transform 100ms var(--ease-out), background-color 150ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-pressed); }

main { padding-block: var(--space-5) var(--space-8); }
@media (min-width: 40rem) { main { padding-block: var(--space-7) var(--space-9); } }

/* Hero: the promise, the action and the product, all before any scrolling.
   Text beside the Board on wide screens, the Board below on narrow ones; a
   phone-sized Board on phones. The image is chosen by <picture>, light or dark. */
.hero { padding-block: var(--space-7) var(--space-5); }
.hero-in {
  max-inline-size: 76rem; margin-inline: auto; padding-inline: 1rem;
  display: grid; gap: var(--space-6);
}
.hero h1 { font-size: clamp(2rem, 7.5vw, 3rem); line-height: 1.08; margin-block-end: var(--space-4); text-wrap: balance; }
.hero-sub { font-size: 1.1875rem; line-height: 1.45; color: var(--label-2); max-inline-size: 34rem; margin: 0; text-wrap: pretty; }
.hero-cta { margin-block: var(--space-5) 0; }
.btn-lg { font-size: 1.0625rem; padding-block: 0.75rem; padding-inline: 1.5rem; }
.hero-shot { margin: 0; }
.hero-shot img {
  display: block; inline-size: 100%; block-size: auto;
  border-radius: var(--radius-card); border: 1px solid var(--separator);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.1);
}
.hero-shot figcaption { margin-block-start: var(--space-3); font-size: 0.8125rem; color: var(--label-2); text-align: center; }
@media (max-width: 39.99rem) {
  .hero { padding-block-start: var(--space-6); }
  .hero-shot img { max-inline-size: 20rem; margin-inline: auto; border-radius: 1.75rem; }
}
@media (min-width: 40rem) { .hero-in { padding-inline: var(--space-5); } }
@media (min-width: 68rem) {
  .hero { padding-block: var(--space-8) var(--space-6); }
  .hero-in { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
  .hero h1 { font-size: 2.5rem; }
}
@media (prefers-color-scheme: dark) {
  .hero-shot img { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); }
}

.card { background: var(--card); border-radius: var(--radius-card); padding: var(--space-5); }
@media (max-width: 30rem) { .card { padding: var(--space-4); } }

table { inline-size: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
th { text-align: start; font-weight: 600; color: var(--label-2); font-size: 0.8125rem; padding-block: 0 var(--space-2); padding-inline-end: var(--space-3); border-block-end: 1px solid var(--separator); }
td { vertical-align: top; padding-block: var(--space-3); padding-inline-end: var(--space-3); border-block-end: 1px solid var(--separator); }
tr:last-child td { border-block-end: 0; padding-block-end: 0; }
th:last-child, td:last-child { padding-inline-end: 0; }
@media (max-width: 30rem) { table { font-size: 0.875rem; } }
.note { margin-block-start: var(--space-3); }

ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--space-4); }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: var(--space-3); align-items: start; }
ol.steps li::before {
  content: counter(step); inline-size: 2rem; block-size: 2rem; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.9375rem;
  display: grid; place-items: center; margin-block-start: -0.125rem;
}

.price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: var(--space-2); margin-block-end: var(--space-3); }
.price b { font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; font-weight: 700; }
.price span { color: var(--label-2); }
.card p:last-child { margin-block-end: 0; }

.cta { display: flex; gap: var(--space-2) var(--space-4); align-items: center; flex-wrap: wrap; margin-block: var(--space-5) 0; }

.sign { margin-block-start: var(--space-7); }
.sign b { display: block; font-weight: 600; }

footer { border-block-start: 1px solid var(--separator); padding-block: var(--space-5) var(--space-6); color: var(--label-2); font-size: 0.8125rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: background-color, color !important; }
  .btn:active { transform: none; }
}

/* Long prose pages such as the privacy notice sit their sections closer together. */
.doc h2 { margin-block-start: var(--space-6); font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
