/* P+ profile — brand tokens and shared components (site, deck, booklet, proposal) */

:root {
  /* Ink & Ember: deep ink surfaces, warm ivory paper, one ember spark */
  --ink: #0c111d;
  --ink-2: #131a2b;
  --ink-3: #1c2640;
  --ink-line: rgba(255, 255, 255, .10);
  --ivory: #f7f3ec;
  --paper: #fffdf9;
  --sand: #e8e0d2;
  --sand-2: #d9cfbd;
  --text: #171c27;
  --stone: #5d6473;
  --mist: #a8afbf;
  --ember: #f0562e;
  --ember-deep: #c2401c;
  --ember-soft: #fdeae3;
  --navy: #1e3a5f;
  --navy-soft: #e7edf5;
  --teal: #2a8f8a;
  --gold: #c79a4b;
  --good: #2e9e6b;
  --warn: #d6951a;
  --bad: #d6453d;
  --info: #3b7dd8;
  --display: 'Sora', 'Cairo', system-ui, sans-serif;
  --body: 'Inter', 'Cairo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 18px;
  --shadow: 0 30px 80px -30px rgba(12, 17, 29, .45), 0 8px 24px -12px rgba(12, 17, 29, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--ivory); line-height: 1.6; -webkit-font-smoothing: antialiased; }
[lang="ar"], [dir="rtl"] { font-family: 'Cairo', var(--body); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; }

.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ''; width: 1.8em; height: 1px; background: currentColor; }
.on-dark { color: #eef1f7; }
.on-dark .muted, .on-dark p { color: #aeb6c8; }
.muted { color: var(--stone); }
.em { color: var(--ember); }

.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-deep); }
.btn--ghost { border-color: var(--ink-line); color: #eef1f7; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .35); }

/* P+ lockup */
.pplus { display: inline-flex; align-items: center; gap: .55em; font-family: var(--display); font-weight: 800; text-decoration: none; }
.pplus svg { width: 2.1em; height: 2.1em; display: block; }
.pplus [data-pplus] svg, [data-pplus] > svg { width: 100%; height: 100%; }
.pplus span { font-size: 1em; letter-spacing: -.01em; }
.pplus small { font-family: var(--mono); font-weight: 500; font-size: .55em; letter-spacing: .14em; text-transform: uppercase; opacity: .6; display: block; margin-top: .2em; }

/* reveal on scroll: only once the page has its script (layout.html marks <html class="js">); without it, everything shows */
.js .rv, .slide .rv { opacity: 0; transform: translateY(26px); }
.rv { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in, .js .rv.in, .slide .rv.in { opacity: 1; transform: none; }

/* chips, cards */
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .35em .8em; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .07); border: 1px solid var(--ink-line); color: #dfe4ee; }
.chip i { width: .5em; height: .5em; border-radius: 50%; background: var(--ember); }
.card { background: var(--paper); border: 1px solid var(--sand); border-radius: var(--r); padding: 1.6rem; }
.card--dark { background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border-color: var(--ink-line); color: #eef1f7; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { font-size: .94rem; color: var(--stone); }
.card--dark p { color: #aeb6c8; }
.ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--ember-soft); color: var(--ember-deep); margin-bottom: 1rem; }
.card--dark .ico { background: rgba(240, 86, 46, .14); color: #ff8a68; }
.ico svg { width: 1.3rem; height: 1.3rem; }

/* dark backdrop with spark grid */
.night { background: radial-gradient(1200px 600px at 85% -10%, rgba(240, 86, 46, .20), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(42, 143, 138, .18), transparent 60%), var(--ink); position: relative; overflow: hidden; }
.night::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); pointer-events: none; }
.night > * { position: relative; }

.placeholder { background: repeating-linear-gradient(-45deg, #fff4d6, #fff4d6 8px, #ffeab3 8px, #ffeab3 16px); color: #7a5600; border-radius: 6px; padding: .1em .5em; font-weight: 600; font-family: var(--mono); font-size: .85em; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .rv, .js .rv, .slide .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* real product capture in a browser frame */
.shot { border-radius: 14px; overflow: hidden; background: #0c111d; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .12); }
.shot--flat { box-shadow: 0 14px 40px -24px rgba(12, 17, 29, .5); border-color: var(--sand-2); }
.shot__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #0c111d; direction: ltr; }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b3550; }
.shot__bar span { margin: 0 auto; height: 21px; padding: 0 14px; min-width: 38%; border-radius: 6px; background: #171f33; color: #8d97ad; font: 500 10.5px var(--mono); display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.shot__bar span svg { width: 10px; height: 10px; color: #2e9e6b; flex: none; }
.shot__view { position: relative; aspect-ratio: 16 / 10; background: #f3f4f7; overflow: hidden; }
.shot__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; opacity: 0; transition: opacity .6s ease; display: block; }
.shot__view img.on { opacity: 1; }
.shot__cap { position: absolute; inset-inline-start: 14px; bottom: 14px; background: rgba(12, 17, 29, .82); color: #fff; font-size: .78rem; font-weight: 600; padding: .45em .9em; border-radius: 999px; }
.shot--nobar .shot__bar { display: none; }

/* PDFs: a soft shadow is printed as a masked picture, and phone PDF viewers draw that mask as a solid grey box round the screen. */
@media print { *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; } }
