/* Lumelyx marketing + /i pages. Tokens from docs/brand.md. */
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --paper: #F4F1EA; --surface: #FBFAF6; --ink: #161513; --ink-2: #4A463F; --line: #DDD7CB;
  --stage: #121110; --stage-2: #1B1A18; --on-stage: #ECE8DF; --on-stage-2: #A39E93; --stage-line: #2E2C28;
  --accent: #C2412A; --accent-on-dark: #E2664D; --brass: #A8874F;
  --serif: "Newsreader", "Plex Arabic", Georgia, serif;
  --sans: "Hanken Grotesk", "Plex Arabic", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(.22,1,.36,1); --ease-expo: cubic-bezier(.16,1,.3,1);
  --t-open: 250ms; --t-close: 150ms; --t-reveal: 800ms; --t-hero: 1200ms;
  --pad: clamp(20px, 4vw, 56px); --maxw: 1240px;
}
/* Dark mode: follows the system unless the visitor picked one (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) { --paper: #121110; --surface: #1B1A18; --ink: #ECE8DF; --ink-2: #B4AEA2; --line: #2E2C28; --stage: #0A0908; --stage-2: #151412; --stage-line: #24221F; --accent: #E2664D; color-scheme: dark; }
}
html[data-theme="dark"] { --paper: #121110; --surface: #1B1A18; --ink: #ECE8DF; --ink-2: #B4AEA2; --line: #2E2C28; --stage: #0A0908; --stage-2: #151412; --stage-line: #24221F; --accent: #E2664D; color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
.theme-btn { background: transparent; border: 1px solid var(--stage-line); color: var(--on-stage-2); width: 40px; height: 40px; border-radius: 6px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { color: var(--on-stage); } }
html:lang(ar) { --serif: "Plex Arabic", serif; --sans: "Plex Arabic", system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, [role="button"], label, summary { touch-action: manipulation; }
:where(button, a.btn):active { transform: scale(.97); transition: transform 140ms; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 16px; top: 0; transform: translateY(-120%); background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 0 0 6px 6px; z-index: 99; transition: transform var(--t-open) var(--ease-out); }
.skip:focus { transform: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.mono { font: 400 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
html:lang(ar) .mono { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 13px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms; }
.btn-light { background: var(--on-stage); color: var(--stage); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: #fff; }
  .btn-dark:hover { background: #000; }
  .btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
}

/* Header */
.top { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--on-stage); padding-top: env(safe-area-inset-top); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { font: 500 24px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 18px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 4px; height: 4px; background: var(--accent-on-dark); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; color: var(--on-stage-2); font-size: 15px; }
.nav a:hover { color: var(--on-stage); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; color: var(--stage); }
@media (max-width: 860px) { .nav .hide-m { display: none; } }
.nav a, .nav .btn { white-space: nowrap; }
@media (max-width: 430px) { .nav { gap: 14px; } .nav .hide-xs { display: none; } .brand { font-size: 22px; } }
@media (max-width: 400px) { .top .theme-btn { display: none; } .nav .btn { padding: 0 12px; font-size: 14px; } }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.f-theme { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.f-theme .theme-btn { color: var(--on-stage-2); }

/* Hero: the stage */
.hero { background: var(--stage); color: var(--on-stage); padding: calc(96px + env(safe-area-inset-top)) 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 62%, rgba(255,236,200,.07), transparent 70%); pointer-events: none; }
.hero-head { text-align: center; max-width: 860px; margin: 0 auto; position: relative; }
.eyebrow { color: var(--on-stage-2); display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-on-dark); box-shadow: 0 0 0 0 rgba(226,102,77,.5); }
h1 { font: 400 clamp(46px, 7vw, 96px)/.95 var(--serif); letter-spacing: -.025em; margin: 14px 0 18px; text-wrap: balance; }
h1 em { font-style: italic; color: #fff; }
html:lang(ar) h1 { line-height: 1.15; letter-spacing: 0; font-weight: 600; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: #CFCABF; max-width: 600px; margin: 0 auto 26px; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--on-stage-2); margin-top: 16px; font-size: 14px; }

/* The frame */
.stage { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1080px; position: relative; }
.frame { position: relative; background: #0b0a09; padding: clamp(8px, 1.1vw, 14px); border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 1px #2a2723, 0 40px 80px -30px rgba(0,0,0,.8), 0 18px 30px -18px rgba(0,0,0,.6); transition: aspect-ratio 600ms var(--ease-expo); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(168,135,79,.25); pointer-events: none; }
.canvas { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.canvas img.develop { animation: develop var(--t-hero) var(--ease-expo) both; }
@keyframes develop { from { filter: blur(14px) saturate(.6); transform: scale(1.045); opacity: .2; } to { filter: none; transform: none; opacity: 1; } }
.qr { position: absolute; right: 1.6%; bottom: 2.6%; width: max(18px, 3%); aspect-ratio: 1; background: rgba(255,255,255,.7); padding: 2px; border-radius: 2px; opacity: .5; }
.qr svg { width: 100%; height: 100%; display: block; }
.listen { position: absolute; inset: auto 0 0; padding: 22px 4% 18px; background: linear-gradient(to top, rgba(0,0,0,.66), transparent); color: #fff; font: 400 clamp(14px, 1.6vw, 19px)/1.35 var(--serif); font-style: italic; display: flex; gap: 12px; align-items: baseline; opacity: 0; transition: opacity var(--t-open) var(--ease-out); padding-inline-end: 14%; }
.listen.on { opacity: 1; }
.listen .ring { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-on-dark); align-self: center; animation: pulse 1.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,102,77,.6); } 100% { box-shadow: 0 0 0 14px rgba(226,102,77,0); } }
.caret { display: inline-block; width: 1px; height: 1em; background: #fff; vertical-align: -2px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.spec { display: flex; justify-content: space-between; gap: 12px; color: var(--on-stage-2); margin-top: 16px; flex-wrap: wrap; }

/* Sections */
section { padding: clamp(72px, 10vw, 140px) 0; }
h2 { font: 400 clamp(34px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0 0 24px; text-wrap: balance; }
html:lang(ar) h2 { line-height: 1.25; letter-spacing: 0; font-weight: 600; }
h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 8px; }
.sub { color: var(--ink-2); max-width: 640px; font-size: 18px; margin: 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.works { background: var(--stage); color: var(--on-stage-2); border-top: 1px solid var(--stage-line); padding: 22px 0; }
.works .wrap { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: center; justify-content: center; }
.works b { color: var(--on-stage); font-weight: 400; }

/* Pinned orientation story */
.story .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-visual { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.story-visual .frame { width: min(100%, 600px); }
.story-visual .canvas { transition: aspect-ratio 700ms var(--ease-expo); }
.story-visual[data-o="portrait"] .frame { width: min(66%, 380px); }
.story-visual[data-o="portrait"] .canvas { aspect-ratio: 9 / 16; }
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { min-height: 44vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 32px 0; opacity: .5; transition: opacity 400ms var(--ease-out); }
.story-list li.on, .no-js .story-list li { opacity: 1; }
.story-list .mono { color: var(--accent); margin-bottom: 12px; }
.story-list p { color: var(--ink-2); font-size: 19px; margin: 0; max-width: 460px; }
.story-list h3 { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); letter-spacing: -.01em; }
@media (max-width: 860px) {
  .story .wrap { grid-template-columns: 1fr; }
  .story-visual { position: relative; top: 0; height: auto; margin-bottom: 8px; }
  .story-list li { min-height: 0; opacity: 1; padding: 24px 0; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.steps li { list-style: none; padding: 32px clamp(20px, 2.6vw, 36px) 8px; border-inline-end: 1px solid var(--line); }
.steps li:first-child { padding-inline-start: 0; }
.steps li:last-child { border-inline-end: 0; }
.steps .n { font: 400 64px/1 var(--serif); color: var(--brass); display: block; margin-bottom: 18px; }
.steps p { color: var(--ink-2); margin: 0; }
.steps ol, ol.steps { padding: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li:first-child { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 24px 0; } }

/* Features: one large framed artwork beside a ruled list */
.feat-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 48px; }
.feat-wrap .frame { position: sticky; top: 14vh; }
.feat { list-style: none; margin: 0; padding: 0; }
.feat li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.feat li:last-child { border-bottom: 1px solid var(--line); }
.feat h3 { font: 400 26px/1.15 var(--serif); margin: 0; }
.feat p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .feat-wrap { grid-template-columns: 1fr; } .feat-wrap .frame { position: relative; top: 0; } .feat li { grid-template-columns: 1fr; gap: 6px; } }

/* QR section */
.door { background: var(--stage); color: var(--on-stage); }
.door .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.door .sub { color: var(--on-stage-2); }
.door .qr { width: max(22px, 4%); }
@media (max-width: 860px) { .door .wrap { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.plan { background: var(--surface); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.pop { background: var(--ink); color: var(--paper); }
.plan.pop ul, .plan.pop .price small, .plan.pop .mono { color: color-mix(in srgb, var(--paper) 78%, var(--ink)) !important; }
.plan.pop .btn-dark { background: var(--paper); color: var(--ink); }
.plan.pop .tag { background: var(--paper); color: var(--ink) !important; }
.plan .tag { position: absolute; top: -11px; inset-inline-start: 24px; background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 99px; }
.plan .price { font: 400 48px/1 var(--serif); }
.plan .price small { font: 400 15px var(--sans); color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.plan li::before { content: "—"; color: var(--brass); margin-inline-end: 10px; }
.plan .btn { margin-top: auto; }
.fine { color: var(--ink-2); margin-top: 20px; font-size: 15px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font: 400 22px/1.3 var(--serif); display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--ink-2); transition: transform var(--t-open) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 0 0 22px; max-width: 680px; }

/* Final + footer */
.final { background: var(--stage); color: var(--on-stage); text-align: center; }
.final .sub { color: var(--on-stage-2); margin: 0 auto 32px; }
footer { background: var(--stage); color: var(--on-stage-2); border-top: 1px solid var(--stage-line); padding: 56px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
footer p { margin: 10px 0 0; }
footer a { color: var(--on-stage-2); text-underline-offset: 3px; }
footer a:hover { color: var(--on-stage); }
footer .f-brand p:first-of-type { margin-top: 14px; }
footer .addr { font-size: 13px; opacity: .85; }
.f-links { display: grid; gap: 2px; }
.f-links a { text-decoration: none; padding: 9px 0; min-height: 44px; display: flex; align-items: center; }
.f-links a[aria-current="page"] { color: var(--on-stage); }
.f-lang label { display: block; margin-bottom: 8px; }
footer select { font-family: system-ui, sans-serif; background: var(--stage-2); color: var(--on-stage); border: 1px solid var(--stage-line); border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 16px; min-height: 44px; min-width: 180px; }
footer .copy { font-size: 13px; }
.credits { max-width: 560px; }
@media (max-width: 860px) { footer .wrap { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer .wrap { grid-template-columns: 1fr; } }

/* Renewal disclosure under the plans */
.renew { color: var(--ink-2); font-size: 14px; margin: 8px 0 0; max-width: 760px; }

/* Frame waitlist (Founders' list) */
.founders { background: var(--surface); border-top: 1px solid var(--line); }
.founders .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.founders .room { margin: 0; }
.founders .room img { width: 100%; height: auto; border-radius: 3px; }
.founders .room figcaption { color: var(--ink-2); margin-top: 12px; }
.founders .eyebrow { color: var(--accent); margin-bottom: 14px; }
.founders h2 { margin-bottom: 18px; }
.founders h2 em { font-style: italic; color: var(--ink-2); display: block; }
html:lang(ar) .founders h2 em { font-style: normal; }
.perks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: baseline; }
.perks li::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--brass); transform: translateY(-2px); }
.wl { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.wl label { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.wl input, .wl select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; padding: 0 12px; }
.wl input:focus-visible, .wl select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.wl .btn { white-space: nowrap; }
.wl .btn[disabled] { opacity: .6; cursor: progress; }
.wl-fine { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; }
.wl-msg { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; color: var(--accent); }
.wl-done { display: none; align-items: flex-start; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.wl-done h3 { font: 400 26px/1.15 var(--serif); margin: 0 0 6px; }
.wl-done p { margin: 0; color: var(--ink-2); }
.founders.ok .wl, .founders.ok .wl-fine, .founders.ok .wl-msg { display: none; }
.founders.ok .wl-done { display: flex; animation: wl-in 700ms var(--ease-expo) both; }
.seal { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; animation: seal 900ms var(--ease-expo) both; }
.seal svg { width: 22px; height: 22px; }
.seal path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick 600ms 250ms var(--ease-out) forwards; }
@keyframes wl-in { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes seal { from { transform: scale(.4) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .founders .wrap { grid-template-columns: 1fr; } .wl { grid-template-columns: 1fr 1fr; } .wl label:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .wl { grid-template-columns: 1fr; } .wl .btn { width: 100%; } }

/* Legal and help pages */
.doc-hero { background: var(--stage); color: var(--on-stage); padding: calc(128px + env(safe-area-inset-top)) 0 clamp(56px, 7vw, 96px); }
.doc-hero h1 { font-size: clamp(42px, 6vw, 76px); margin: 14px 0 18px; }
.doc-hero .lede { margin: 0; max-width: 680px; }
.doc-hero .note { margin-top: 22px; font-size: 13px; }
.doc { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 128px); }
.toc { position: sticky; top: 32px; align-self: start; }
.toc .mono { color: var(--ink-2); margin: 0 0 14px; font-size: 13px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; padding-inline: 16px 0; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.35; border-inline-start: 2px solid transparent; margin-inline-start: -1px; }
.toc a:hover, .toc a.on { color: var(--ink); border-inline-start-color: var(--accent); }
.prose { min-width: 0; }
.prose > * { max-width: 720px; }
.doc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.doc-art { margin: 0; }
.doc-art .canvas { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .doc-hero-grid { grid-template-columns: 1fr; } .doc-art { display: none; } }
.prose > section { padding: 0; margin: 0 0 44px; scroll-margin-top: 24px; }
.h-sm { font: 400 clamp(26px, 2.6vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
html:lang(ar) .h-sm { font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-inline-start: 22px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 1px; background: var(--brass); }
.prose a:not(.btn) { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--accent); }
.steps-doc > section:nth-of-type(-n+2) ul { counter-reset: st; }
.steps-doc > section:nth-of-type(-n+2) li { counter-increment: st; padding-inline-start: 40px; min-height: 28px; }
.steps-doc > section:nth-of-type(-n+2) li::before { content: counter(st); width: 26px; height: 26px; top: 0; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--ink); font: 500 13px/24px var(--mono); text-align: center; }
.doc-faq { max-width: none; margin-bottom: 56px; }
.doc-faq summary { font-size: 20px; }
.doc-faq p { font-size: 17px; }
.contact-card { margin-top: 56px; padding: 28px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card .h-sm { margin: 0; }
.contact-card .addr { color: var(--ink-2); font-size: 13px; text-transform: none; letter-spacing: .02em; }
.doc-plain { padding-block: 72px; max-width: 760px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } .toc:empty { display: none; } .toc ol { columns: 2; column-gap: 24px; } .toc li { break-inside: avoid; } }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { display: flex; position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)); z-index: 20; transform: translateY(140%); transition: transform var(--t-open) var(--ease-out); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { flex: 1; }
}

/* Reveal (JS adds .js on <html>; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* /i page */
.ipage { min-height: 100svh; background: var(--stage); color: var(--on-stage); padding: calc(88px + env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom)); }
.ipage .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ipage .meta { display: grid; gap: 18px; }
.ipage .prompt { font: 400 clamp(22px, 2.6vw, 32px)/1.25 var(--serif); font-style: italic; margin: 0; }
.ipage .actions { display: grid; gap: 10px; }
.ipage .actions .btn { width: 100%; }
.ipage .canvas.auto { aspect-ratio: auto; }
.ipage .canvas.auto img { position: static; width: 100%; height: auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--on-stage); color: var(--stage); padding: 12px 18px; border-radius: 8px; transition: transform var(--t-open) var(--ease-out); z-index: 30; }
.toast.show { transform: translate(-50%, 0); }
.ipage select { width: 100%; min-height: 48px; background: var(--stage-2); color: var(--on-stage); border: 1px solid var(--stage-line); border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; }
@media (max-width: 860px) { .ipage .wrap { grid-template-columns: 1fr; } }

/* Browser display (/display) */
body.bare { background: #0a0908; overflow: hidden; }
.dsp { position: fixed; inset: 0; background: #0a0908; color: #ECE8DF; }
.dsp-pair, .dsp-art { position: absolute; inset: 0; display: none; }
.dsp[data-state="boot"] .dsp-pair, .dsp[data-state="pair"] .dsp-pair { display: block; }
.dsp[data-state="art"] .dsp-art { display: block; }
.dsp-pair { background: radial-gradient(120vmax 90vmax at 50% 50%, #1E1C19, #121110 70%); --u: 1vmin; }
.dsp-mark { position: absolute; top: calc(var(--u) * 6); inset-inline-start: calc(var(--u) * 6); margin: 0; display: flex; align-items: center; gap: calc(var(--u) * 1.6); font: 400 calc(var(--u) * 3.6)/1 var(--serif); }
.dsp-mark .brand-mark { width: calc(var(--u) * 2.4); height: calc(var(--u) * 1.9); }
.dsp-pair-body { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 9); padding: calc(var(--u) * 6); }
.dsp-qr { width: calc(var(--u) * 52); aspect-ratio: 1; background: #fff; outline: 1px solid rgba(168,135,79,.5); flex: none; }
.dsp-qr svg { display: block; width: 100%; height: 100%; }
.dsp-kicker { font: italic 400 calc(var(--u) * 4.4)/1.2 var(--serif); color: #A39E93; margin: 0 0 calc(var(--u) * 2.5); }
.dsp-code { font: 400 calc(var(--u) * 11)/1 var(--serif); letter-spacing: .08em; margin: 0 0 calc(var(--u) * 3); white-space: nowrap; direction: ltr; }
.dsp-help { font: 400 calc(var(--u) * 2.6)/1.45 var(--sans); color: #A39E93; max-width: calc(var(--u) * 70); margin: 0; }
.dsp-status { position: absolute; bottom: calc(var(--u) * 6); inset-inline-start: calc(var(--u) * 6); margin: 0; font: 400 calc(var(--u) * 2)/1.3 var(--sans); color: rgba(163,158,147,.7); }
@media (orientation: portrait) { .dsp-pair-body { flex-direction: column-reverse; text-align: center; gap: calc(var(--u) * 7); } .dsp-qr { width: calc(var(--u) * 62); } .dsp-help { margin-inline: auto; } }
.dsp-art { background: #000; overflow: hidden; }
.dsp-art::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--veil, 0); pointer-events: none; z-index: 2; transition: opacity 2s; }
.dsp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsp-img.contain { object-fit: contain; }
.dsp-img.develop { animation: develop var(--t-hero) var(--ease-expo) both; }
.dsp-qr-mini { position: absolute; z-index: 3; width: max(18px, 3vw); aspect-ratio: 1; border-radius: 2px; overflow: hidden; }
.dsp-qr-mini svg { display: block; width: 100%; height: 100%; }
.dsp-qr-mini[data-corner="br"] { right: 1.6vw; bottom: 1.6vw; } .dsp-qr-mini[data-corner="bl"] { left: 1.6vw; bottom: 1.6vw; }
.dsp-qr-mini[data-corner="tr"] { right: 1.6vw; top: 1.6vw; } .dsp-qr-mini[data-corner="tl"] { left: 1.6vw; top: 1.6vw; }
.dsp-clock { position: absolute; z-index: 3; display: grid; gap: .2em; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.55); padding: 2.4vw; }
.dsp-clock b { font: 400 clamp(28px, 4.4vw, 84px)/1 var(--serif); }
.dsp-clock span { font: 400 clamp(13px, 1.3vw, 24px)/1.2 var(--sans); opacity: .9; }
.dsp-clock[data-corner="tl"] { left: 0; top: 0; } .dsp-clock[data-corner="tr"] { right: 0; top: 0; text-align: end; }
.dsp-clock[data-corner="bl"] { left: 0; bottom: 0; } .dsp-clock[data-corner="br"] { right: 0; bottom: 0; text-align: end; }
.dsp-notice { position: absolute; z-index: 4; inset: auto 0 0; margin: 0; padding: 4vh 6vw 5vh; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; font: italic 400 clamp(18px, 2.4vw, 44px)/1.3 var(--serif); opacity: 0; transition: opacity var(--t-open) var(--ease-out); }
.dsp-notice.on { opacity: 1; }
.dsp-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 8vw; text-align: center; color: #A39E93; font: italic 400 clamp(20px, 3vw, 48px)/1.3 var(--serif); }
.dsp-empty[hidden] { display: none; }
.dsp-sleep { position: absolute; inset: 0; z-index: 9; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.2s; }
.dsp.asleep .dsp-sleep { opacity: 1; pointer-events: auto; }
.dsp.identify .dsp-art { box-shadow: inset 0 0 0 6px var(--accent-on-dark); }
.dsp-fs { position: absolute; z-index: 10; top: 16px; inset-inline-end: 16px; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(236,232,223,.25); background: rgba(10,9,8,.6); color: #ECE8DF; font: 500 15px var(--sans); cursor: pointer; transition: opacity 400ms; }
.dsp-fs[hidden] { display: none; }
.dsp.idle { cursor: none; }
.dsp.idle .dsp-fs { opacity: 0; pointer-events: none; }
.room-shot { margin: 40px 0 0; }
.room-shot img { width: 100%; height: auto; border-radius: 3px; }
.founders h2 { font-size: clamp(32px, 3.3vw, 46px); }
