/* Shared styles for the static pages (privacy, contact). Matches the landing page's palette and type. */
:root {
  --ink: #141414; --ink-soft: #2a2a2a; --ink-mid: #6b6b6b; --ink-faint: #a8a8a8;
  --bone: #efece7; --bone-soft: #e5e1da; --paper: #f6f4ef;
  --line: rgba(20, 20, 20, 0.12); --line-soft: rgba(20, 20, 20, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bone); color: var(--ink); font-family: 'Archivo', 'IBM Plex Sans Arabic', sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; width: 100%; }

/* one language visible at a time */
html[lang="en"] [data-l="ar"], html[lang="ar"] [data-l="en"] { display: none !important; }
/* Arabic letters must stay joined */
html[dir="rtl"] * { letter-spacing: 0 !important; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(239, 236, 231, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.045em; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.lang-btn { font: 700 13px 'Archivo', 'IBM Plex Sans Arabic', sans-serif; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(20, 20, 20, 0.2); background: transparent; color: var(--ink); cursor: pointer; }
.pill { background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
a:hover { opacity: 0.75; }

.doc { flex: 1; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); max-width: 780px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 11px; letter-spacing: 0.15em; color: var(--ink-mid); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ink-mid); }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 16px; }
html[dir="rtl"] h1 { line-height: 1.25; }
h2 { font-weight: 700; font-size: 22px; letter-spacing: -0.025em; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc p, .doc li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.doc a { text-underline-offset: 3px; }
.meta { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 12px !important; color: var(--ink-mid) !important; margin-bottom: 24px; }
.lead { font-size: clamp(17px, 1.8vw, 20px) !important; max-width: 560px; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; min-height: 190px; }
.card.dark { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.card-label { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 11px; letter-spacing: 0.15em; color: var(--ink-mid); }
.card.dark .card-label, .card.dark .card-note { color: var(--ink-faint); }
.card-value { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-top: auto; overflow-wrap: anywhere; }
html[dir="rtl"] .card-value[dir="ltr"] { text-align: right; }
.card-note { font-size: 14px; line-height: 1.55; color: var(--ink-mid); }

.footer { border-top: 1px solid var(--line); }
.footer-row { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 10px; letter-spacing: 0.15em; color: var(--ink-mid); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a[aria-current="page"] { color: var(--ink); }

/* nav: text links, then the language switch, then the account button (always top right) */
.nav-text { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-text[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.pill { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.acct-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: -4px 0; border-radius: 50%; background: var(--bone); color: var(--ink); font: 800 11px 'Archivo', sans-serif; letter-spacing: 0; }
/* phones: keep the logo, language and account button; drop the text links */
@media (max-width: 640px) { .nav-text { display: none; } }

/* app-store buttons (plain text buttons; no third-party logos) */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--bone); text-decoration: none; line-height: 1.2; }
.store small { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--ink-faint); }
.store b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.store.light { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.store.light small { color: var(--ink-mid); }
.store.soon, .st-btn.soon { cursor: default; opacity: .78; }

/* workshop cards (home strip + /workshops/) */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.ws-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s ease; }
.ws-card:hover { opacity: 1; transform: translateY(-2px); }
.ws-cover { aspect-ratio: 16 / 10; background: var(--ink) center / cover no-repeat; display: grid; place-items: center; font-size: 40px; }
.ws-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.ws-cat { font-family: 'Space Mono', 'IBM Plex Sans Arabic', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mid); text-transform: uppercase; }
.ws-title { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.ws-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-soft); }
.ws-meta b { color: var(--ink); }
.ws-deal { font-size: 11px; font-weight: 800; background: var(--bone-soft, #efece7); border-radius: 6px; padding: 1px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.chip { font: 600 13px 'Archivo', 'IBM Plex Sans Arabic', sans-serif; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.empty { padding: 40px 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--ink-mid); line-height: 1.6; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.sec-h h2 { margin: 0; padding: 0; border: 0; }

/* account page */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.form input { font: 400 16px 'Archivo', 'IBM Plex Sans Arabic', sans-serif; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn { font: 700 15px 'Archivo', 'IBM Plex Sans Arabic', sans-serif; padding: 14px 20px; border-radius: 12px; border: none; background: var(--ink); color: var(--bone); cursor: pointer; text-decoration: none; text-align: center; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--bone-soft); font-size: 14px; line-height: 1.5; }
.notice:empty { display: none; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.bk { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.bk:first-child { border-top: 0; padding-top: 0; }
.bk h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.bk p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: 2px; }
.code { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.08em; }
.qr { background: #fff; border-radius: 10px; padding: 6px; line-height: 0; }
.qr svg { width: 104px; height: 104px; }
.big { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.muted { color: var(--ink-mid); font-size: 14px; line-height: 1.55; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rows a { text-decoration: none; display: flex; justify-content: space-between; gap: 10px; }
[hidden] { display: none !important; }

/* ───────────── Ink in motion (2026-11 redesign) ─────────────
   Shared by every public page. /fx.js adds the live ink canvas, reveals, tilt and page wipes;
   without it (or with reduced motion) every page still reads normally. */
:root { --ease: cubic-bezier(.2, .8, .2, 1); }
html { scroll-padding-top: 96px; }
body { position: relative; overflow-x: clip; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
#ink { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .footer, section { position: relative; z-index: 1; }
::selection { background: var(--ink); color: var(--bone); }

/* floating nav with a reading-progress line */
.nav { top: 10px; margin: 10px 12px 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(239, 236, 231, .78); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); overflow: hidden; z-index: 30; box-shadow: 0 10px 40px -24px rgba(20, 20, 20, .5); }
.nav::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
html[dir="rtl"] .nav::after { transform-origin: right; }
.nav-row { padding-top: 11px; padding-bottom: 11px; }
.brand svg { transition: transform .6s var(--ease); }
.brand:hover { opacity: 1; }
.brand:hover svg { transform: rotate(-8deg) scale(1.08); }
.nav-text { position: relative; padding: 6px 2px; }
.nav-text::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-text:hover { opacity: 1; }
.nav-text:hover::after, .nav-text[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-text[aria-current="page"] { text-decoration: none; }
.lang-btn { transition: background .25s, color .25s; }
.lang-btn:hover { background: var(--ink); color: var(--bone); }

/* buttons: a sheen sweeps across, the button lifts */
.pill, .btn, .store, .st-btn { position: relative; isolation: isolate; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s; }
.pill:hover, .btn:hover:not(:disabled), a.store:not(.soon):hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(20, 20, 20, .55); }
.pill::before, .btn::before, .store::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.pill:hover::before, .btn:hover::before, .store:hover::before { transform: translateX(120%); }
.btn:active, .pill:active { transform: translateY(0) scale(.98); }

/* type */
h1 { word-spacing: .1em; font-size: clamp(46px, 8.6vw, 116px); letter-spacing: -0.055em; line-height: .95; margin-bottom: 24px; text-wrap: balance; }
html[dir="rtl"] h1 { line-height: 1.22; }
.doc { padding-top: clamp(56px, 9vw, 120px); }
.eyebrow::before { width: 36px; transform-origin: left; }
html[dir="rtl"] .eyebrow::before { transform-origin: right; }
.lead { font-size: clamp(18px, 1.9vw, 22px) !important; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .04em .2em; margin: -.14em -.04em -.2em; }
.sw > i { display: inline-block; font-style: normal; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1s var(--ease); }
.sp.in .sw > i { transform: none; }

/* reveal on scroll (classes are added by fx.js, so nothing is hidden without it) */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.rv.done { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background .3s; }
.eyebrow.rv::before { transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.eyebrow.rv.in::before { transform: scaleX(1); }

/* cards: lift, tilt and a soft light that follows the pointer */
.card, .ws-card, .panel, .plan { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; }
.ws-card, a.card, .plan { position: relative; }
.ws-card::after, a.card::after, .plan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 55%); }
a.card.dark::after { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(239, 236, 231, .16), transparent 55%); }
.ws-card:hover, a.card:hover, .plan:hover { opacity: 1; box-shadow: 0 30px 60px -30px rgba(20, 20, 20, .45); border-color: rgba(20, 20, 20, .3); }
.ws-card:hover::after, a.card:hover::after, .plan:hover::after { opacity: 1; }
.ws-card { border-radius: 22px; }
.ws-cover { transition: transform 1.2s var(--ease); }
.ws-card:hover .ws-cover { transform: scale(1.06); }
.ws-card .ws-body { background: var(--paper); position: relative; }
.card, .panel, .plan { border-radius: 22px; }
.chip { transition: background .25s, color .25s, transform .3s var(--ease); }
button.chip:hover { transform: translateY(-2px); }
.form input { transition: border-color .25s, box-shadow .25s; }
.form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 20, 20, .08); }

/* footer */
.footer { background: var(--ink); color: var(--bone); border-top: 0; border-radius: 28px 28px 0 0; margin-top: 40px; overflow: hidden; }
.footer-row { color: var(--ink-faint); }
.footer-links a[aria-current="page"] { color: var(--bone); }

/* page wipes */
html.fx-enter body::after, html.fx-leave body::after { content: ''; position: fixed; inset: 0; z-index: 999; background: var(--ink); pointer-events: none; }
html.fx-enter body::after { animation: wipe-out .8s cubic-bezier(.7, 0, .2, 1) .05s both; }
html.fx-leave body::after { animation: wipe-in .42s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes wipe-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-out { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .sw > i { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.fx-enter body::after, html.fx-leave body::after { display: none; }
}
@media (max-width: 640px) { .nav { margin: 8px 8px 0; top: 8px; } }
