/* Ecomnorme landing proposals — the shared base (identity of docs/brand/site-identity.html).
   Every proposal links this file, then adds its own <style>. Light, fast: no images, no libraries,
   animations on transform / opacity only, all of them still under prefers-reduced-motion. */

@font-face { font-family: "Easycod"; src: url("/fonts/easycod-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Easycod"; src: url("/fonts/easycod-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Easycod"; src: url("/fonts/easycod-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Easycodarab"; src: url("/fonts/easycodarab-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Easycodarab"; src: url("/fonts/easycodarab-medium.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Easycodarab"; src: url("/fonts/easycodarab-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Easycodarab"; src: url("/fonts/easycodarab-black.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

:root {
  --ink-950: #0E1219; --ink-900: #161B25; --ink-800: #212734; --ink-700: #323949;
  --ink-500: #5A6070; --ink-300: #A8ACB5; --ink-200: #D7D9DE;
  --paper-0: #FFFFFF; --paper-50: #FCFCFD; --paper-100: #F9F9FA; --paper-200: #F1F2F4; --paper-line: #EBECEF;
  --pink-100: #FDEEF0; --pink-200: #FBDDE1; --pink-300: #F4A3AE; --pink-400: #F06A7D; --pink-500: #EB485E; --pink-600: #D63A51; --pink-700: #C2283F;
  --green-600: #2F7A50; --green-100: #E6F4EC; --red-600: #B8432F; --red-100: #FBEAE6; --amber-600: #8A560C; --amber-100: #FBF0DC; --blue-600: #2D5BB5; --blue-100: #E7EEFB;

  --font: "Easycod", "Easycodarab", system-ui, sans-serif;
  --radius-control: 10px; --radius-card: 20px; --radius-panel: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* one step deeper than the app's button so a 15 px white label reads ≥ 4.5:1 everywhere on it */
  --grad-pink: linear-gradient(135deg, #D63A51 0%, #C92F48 55%, #AE223B 100%);

  --bg-page: var(--paper-100); --bg-surface: var(--paper-0); --bg-sunken: var(--paper-200);
  --text-primary: var(--ink-900); --text-secondary: var(--ink-500); --text-accent: var(--pink-600); --text-accent-small: var(--pink-700);
  --border: var(--paper-line); --border-strong: var(--ink-200);
  --shadow-card: 0 1px 2px rgb(22 27 37 / .04), 0 12px 32px -12px rgb(22 27 37 / .12);
  --shadow-float: 0 2px 6px rgb(22 27 37 / .06), 0 24px 48px -20px rgb(22 27 37 / .22);
  --dot-grey: rgb(22 27 37 / .2);
}
/* A dark band (or a whole dark page): put .ink on the element */
.ink {
  --bg-page: var(--ink-950); --bg-surface: var(--ink-900); --bg-sunken: var(--ink-800);
  --text-primary: var(--paper-100); --text-secondary: var(--ink-300); --text-accent: var(--pink-400); --text-accent-small: var(--pink-300);
  --border: var(--ink-700); --border-strong: var(--ink-500);
  --shadow-card: 0 1px 2px rgb(0 0 0 / .3), 0 16px 36px -16px rgb(0 0 0 / .6);
  --shadow-float: 0 2px 6px rgb(0 0 0 / .35), 0 28px 56px -24px rgb(0 0 0 / .7);
  --dot-grey: rgb(238 240 243 / .13);
  background: var(--bg-page); color: var(--text-primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-page); color: var(--text-primary); font-family: var(--font); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* a phone widens its page to whatever reaches past the screen (a light, a mock's shadow), and the clip on body does not
   stop it: clipping the page's own content does (clip, not hidden: the sticky parts keep working) */
main { overflow-x: clip; }
::selection { background: var(--pink-200); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--border-strong) transparent; }
input, textarea { caret-color: var(--text-accent); }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 48px; } }
section { position: relative; }
/* below the first screen the browser may skip painting until it comes near */
.lazy { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* Type: few sizes, short lines */
.t-display { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.1; font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.t-h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 600; margin: 0; text-wrap: balance; }
.t-h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.35; font-weight: 600; margin: 0; text-wrap: balance; }
.t-lead { font-size: clamp(17px, 1.7vw, 19px); line-height: 1.7; color: var(--text-secondary); margin: 0; max-width: 46ch; text-wrap: pretty; }
.t-small { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }
.t-eyebrow { font-size: 13px; font-weight: 500; color: var(--text-accent-small); margin: 0; }
.accent { color: var(--text-accent); }
:lang(ar) .t-display, :lang(ar) .t-h2 { letter-spacing: 0; }

/* Buttons: the pink one converts, the ink one navigates */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding-inline: 22px; border-radius: var(--radius-control); border: 0; font: inherit; font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; text-decoration: none; transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out), filter .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-brand { background: var(--grad-pink); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 2px rgb(190 38 64 / .3), 0 12px 26px -12px rgb(235 72 94 / .75); }
.btn-brand:hover { filter: brightness(1.05); }
/* on a dark ground a pink drop reads as neon: the pink stays in the fill, the depth is neutral */
.ink .btn-brand, .ink .chip-pink { box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 10px 24px -12px rgb(0 0 0 / .7); }
.btn-ink { background: var(--text-primary); color: var(--bg-page); }
.btn-ghost { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text-secondary); }
.btn-sm { --h: 40px; padding-inline: 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding-inline: 28px; font-size: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding-inline: 12px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1; }
.chip-pink { background: var(--grad-pink); color: #fff; }
.chip-soft { background: var(--bg-surface); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border); }
.card { background: var(--bg-surface); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-card); }

/* The mark (stand-in until the logo is chosen) */
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; }
.mark-glyph { width: 28px; height: 28px; border-radius: 8px; background: var(--grad-pink); position: relative; flex: none; }
.mark-glyph::after { content: ""; position: absolute; inset: 7px; border-radius: 4px; border: 2px solid #fff; border-inline-start-color: rgb(255 255 255 / .45); }

/* Top bar: mark, two links, the invite button (sticky, blurred) */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-page) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.nav-links { display: none; gap: 4px; margin-inline-start: auto; }
.nav-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text-primary); background: color-mix(in srgb, var(--text-primary) 5%, transparent); }
.nav .btn { margin-inline-start: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav .btn { margin-inline-start: 8px; } }

.foot { padding-block: 32px 40px; font-size: 13px; color: var(--text-secondary); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Small pieces of the real product, drawn in CSS (no screenshots: sharp, light, both themes) */
.ui { background: var(--bg-surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-float); overflow: hidden; font-size: 13px; }
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-page); }
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.ui-bar b { margin-inline-start: 8px; font-weight: 500; font-size: 12px; color: var(--text-secondary); }
.ui-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.ui-row:last-child { border-bottom: 0; }
.ui-row .grow { flex: 1; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding-inline: 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-new { background: var(--blue-100); color: var(--blue-600); }
.p-ok { background: var(--green-100); color: var(--green-600); }
.p-wait { background: var(--amber-100); color: var(--amber-600); }
.p-bad { background: var(--red-100); color: var(--red-600); }
.p-ink { background: var(--bg-sunken); color: var(--text-primary); }
.ink .p-new, .ink .p-ok, .ink .p-wait, .ink .p-bad { background: rgb(255 255 255 / .06); }
.ink .p-new { color: #8FB0F0; } .ink .p-ok { color: #7CC49A; } .ink .p-wait { color: #E2B062; } .ink .p-bad { color: #F0937F; }

/* The dot light (the identity's hero light): tiny grey dots around [data-dot-anchor], a 180 px pink light that follows
   the pointer (base.js). Put <span class="dot-light" aria-hidden="true"></span> first in a positioned, isolated box. */
.dot-light { --dot-mask: radial-gradient(#000 1px, transparent 1.4px); --ax: 50%; --ay: 50%; --mx: var(--ax); --my: var(--ay); --in: 0; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgb(235 72 94 / calc(var(--in) * .05)), transparent); }
.dot-light::before, .dot-light::after { content: ""; position: absolute; inset: 0; -webkit-mask-repeat: repeat, no-repeat, no-repeat, no-repeat; mask-repeat: repeat, no-repeat, no-repeat, no-repeat;
  -webkit-mask-size: 16px 16px, 100% 100%, 100% 100%, 100% 100%; mask-size: 16px 16px, 100% 100%, 100% 100%, 100% 100%; -webkit-mask-composite: source-in, source-over, source-over; mask-composite: intersect, add, add; }
.dot-light::before { background: var(--dot-grey);
  -webkit-mask-image: var(--dot-mask), radial-gradient(260px 200px at calc(var(--ax) - 160px) calc(var(--ay) - 40px), #000, transparent), radial-gradient(240px 220px at calc(var(--ax) + 120px) calc(var(--ay) + 100px), #000, transparent), radial-gradient(200px 160px at calc(var(--ax) + 40px) calc(var(--ay) - 160px), #000, transparent);
  mask-image: var(--dot-mask), radial-gradient(260px 200px at calc(var(--ax) - 160px) calc(var(--ay) - 40px), #000, transparent), radial-gradient(240px 220px at calc(var(--ax) + 120px) calc(var(--ay) + 100px), #000, transparent), radial-gradient(200px 160px at calc(var(--ax) + 40px) calc(var(--ay) - 160px), #000, transparent); }
.dot-light::after { background: var(--pink-500); opacity: calc(.28 + var(--in) * .42); -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-image: var(--dot-mask), radial-gradient(180px circle at var(--mx) var(--my), #000, transparent); mask-image: var(--dot-mask), radial-gradient(180px circle at var(--mx) var(--my), #000, transparent); }
.ink .dot-light::after { opacity: calc(.22 + var(--in) * .33); }

/* Reveal on scroll (base.js adds .in once): a short rise, once */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
