/* ═══════════════════════════════════════════════════════════════════════════
   REYIA website — the app's design system, carried over.

   The tokens are copied from the platform's stylesheet
   (Reyia/Platform/crates/api/src/admin_page/admin.css), which copies them from the app
   (Reyia/Core/Extensions/Color+Theme.swift, Font+Theme.swift). Change a token in all three
   together, or they drift. Fonts are the app's own files, served from this origin.
   ═══════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/BebasNeue-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
:root {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface2: #181818;
  --surface3: #1C1C1C;
  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .10);
  --text: #FFFFFF;
  --text-body: rgba(255, 255, 255, .85);
  --muted: rgba(255, 255, 255, .5);
  --dim: rgba(255, 255, 255, .3);
  --micro: rgba(255, 255, 255, .2);
  --gold: #C49A38;
  --gold-light: #E0C070;
  --gold-base: #A07828;
  --gold-accent: #D4AE58;
  --gold-dim: rgba(196, 154, 56, .40);
  --gold-strong: rgba(196, 154, 56, .50);
  --gold-surface: rgba(196, 154, 56, .10);
  --gold-surface-active: rgba(196, 154, 56, .15);
  --gold-gradient: linear-gradient(90deg, #A07828, #E0C070);
  --ok: #4ADE80;
  --bad: #F87171;
  --warn: #FBBF24;
  --info: #60A5FA;
  --ok-surface: rgba(74, 222, 128, .10);
  --ok-border: rgba(74, 222, 128, .30);
  --bad-surface: rgba(248, 113, 113, .10);
  --bad-border: rgba(248, 113, 113, .30);
  --warn-surface: rgba(251, 191, 36, .10);
  --warn-border: rgba(251, 191, 36, .30);
  --font-display: "Bebas Neue", "Barlow Condensed", Impact, sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-label: "Barlow Condensed", "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-card: 12px;
  --r-button: 12px;
  --r-input: 12px;
  --r-small: 8px;
  --r-badge: 5px;
  --top-h: 64px;
  --gutter: 20px;
  --measure: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
html, body { margin: 0; background: var(--bg); color: var(--text-body); }
body { font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a, .foot a { color: var(--gold-light); }
p a:hover, li a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: var(--r-small); z-index: 99; }
.skip:focus { left: 8px; }

/* ── type: Bebas for titles, Barlow Condensed capitals for labels, Barlow for text ── */
h1 { font: 400 clamp(44px, 7vw, 84px)/.98 var(--font-display); letter-spacing: .02em; color: var(--text); }
h2 { font: 400 clamp(30px, 4.2vw, 46px)/1.02 var(--font-display); letter-spacing: .03em; color: var(--text); }
h3 { font: 400 24px/1.1 var(--font-display); letter-spacing: .04em; color: var(--text); }
.eyebrow, h4.eyebrow { font: 600 12px/1.3 var(--font-label); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--text-body); max-width: 40em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.micro { font-size: 12px; color: var(--dim); line-height: 1.5; }
.gold { color: var(--gold-light); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose h2 { margin: 2em 0 .6em; }
.prose h3 { margin: 1.6em 0 .5em; }

/* ── the bar: the app's wordmark (Bebas, gold, tracking 12 %) and the eye ── */
.top { position: sticky; top: 0; z-index: 10; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); background: rgba(13, 13, 13, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { font: 400 30px/1 var(--font-display); letter-spacing: .12em; color: var(--gold); padding-top: 3px; }
.brand .eye { width: 56px; height: 30px; }
.brand.small .mark { font-size: 24px; }
.brand.small .eye { width: 45px; height: 24px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { font: 600 13px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-radius: var(--r-small); }
.top nav a:hover { color: var(--gold-light); }
.top nav a[aria-current="page"] { color: var(--text); }
.top nav a.button { margin-left: 8px; }

/* ── buttons (reyiaButtonText; the primary one is the sign-in screen's gold gradient) ── */
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 13px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: var(--surface2); border: 1px solid var(--line-strong); border-radius: var(--r-button); padding: 12px 18px; min-height: 42px; cursor: pointer; white-space: nowrap; }
.button:hover, button:hover { border-color: var(--gold-dim); color: var(--gold-light); }
.button.primary, button.primary { background: var(--gold-gradient); color: #000; border-color: transparent; }
.button.primary:hover, button.primary:hover { color: #000; filter: brightness(1.08); }
.top nav a.button.primary { color: #000; padding: 11px 16px; min-height: 38px; }
.button.outline { background: var(--gold-surface); color: var(--gold-light); border-color: var(--gold-dim); }
.button.outline:hover { background: var(--gold-surface-active); }
.button.lg, button.lg { font-size: 14px; padding: 15px 24px; min-height: 48px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── sections ── */
section { padding: 72px var(--gutter); }
.wrap { max-width: var(--measure); margin: 0 auto; }
.narrow { max-width: 760px; }
.tint { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.head { max-width: 760px; margin-bottom: 40px; }
.head p { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 24px; }
.tint .card { background: var(--surface2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .eyebrow { margin-bottom: 10px; }
.card.gold { border-color: var(--gold-dim); background: var(--gold-surface); }
.card.gold p { color: var(--text-body); }
.card .tag { display: inline-block; margin-top: 14px; }
.tag { font: 600 10px/1 var(--font-label); letter-spacing: .18em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-badge); border: 1px solid var(--gold-dim); background: var(--gold-surface); color: var(--gold-light); }
.tag.ok { border-color: var(--ok-border); background: var(--ok-surface); color: var(--ok); }
.tag.warn { border-color: var(--warn-border); background: var(--warn-surface); color: var(--warn); }
.tag.dim { border-color: var(--line-strong); background: var(--surface2); color: var(--muted); }

/* ── the hero: the sign-in screen's composition, the eye above the wordmark ── */
.hero { position: relative; padding: 88px var(--gutter) 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(ellipse at 50% 0%, rgba(196, 154, 56, .14), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { max-width: 12em; }
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 36px; }
.hero .glow { width: 150px; height: 80px; margin-bottom: 28px; filter: drop-shadow(0 0 22px rgba(224, 192, 112, .35)); }

/* ── the proof strip (reyiaTabPageTitle for the figure, SectionLabel beneath) ── */
.proof { display: flex; flex-wrap: wrap; gap: 16px; }
.proof .pt { flex: 1 1 160px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.proof .v { font: 400 44px/1 var(--font-display); letter-spacing: .02em; color: var(--gold-light); }
.proof .l { margin-top: 8px; font: 600 11px/1.3 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* ── capability rows ── */
.caps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.cap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px; background: var(--surface); }
.cap h3 { font-size: 22px; }
.cap .k { font: 600 11px/1.4 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.cap p { color: var(--muted); }
.cap p + p { margin-top: .6em; }
.cap .status { margin-top: 12px; }

/* ── steps ── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { counter-increment: s; padding: 24px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.step::before { content: counter(s, decimal-leading-zero); display: block; font: 400 36px/1 var(--font-display); color: var(--gold); margin-bottom: 12px; letter-spacing: .04em; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ── a quote, a band ── */
.quote { border-left: 2px solid var(--gold); padding: 6px 0 6px 22px; font-size: 22px; line-height: 1.4; color: var(--text); max-width: 34em; }
.quote cite { display: block; margin-top: 12px; font: 600 11px/1 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-style: normal; }
.band { background: var(--gold-surface); border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { max-width: 16em; }

/* ── facts table (what is true, stated plainly) ── */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font: 600 11px/1.3 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.facts td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.facts td { color: var(--muted); }

/* ── forms (ReyiaMetrics inputs, Barlow Condensed labels) ── */
form.inq { display: grid; gap: 16px; }
form.inq .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font: 600 11px/1.4 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
label span.req { color: var(--gold); }
input, select, textarea { display: block; width: 100%; margin-top: 8px; font: 16px/1.3 var(--font-body); color: var(--text); background: var(--surface2); border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 11px 14px; min-height: 44px; letter-spacing: normal; text-transform: none; }
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 1px; border-color: var(--gold-dim); }
label.bad input, label.bad textarea { border-color: var(--bad-border); }
.why { display: block; margin-top: 6px; font: 400 13px/1.4 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--bad); }
.consent { display: flex; gap: 12px; align-items: flex-start; font: 400 14px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text-body); }
.consent input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; flex: none; accent-color: var(--gold); }
.notice { padding: 14px 16px; border-radius: var(--r-card); border: 1px solid var(--warn-border); background: var(--warn-surface); color: var(--warn); }
/* The honeypot: present for a script, absent for a person. Not display:none, which some scripts honour. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.aside { position: sticky; top: calc(var(--top-h) + 24px); }
.aside .card + .card { margin-top: 16px; }
.aside .card p + p { margin-top: .6em; }

/* ── footer ── */
.foot { padding: 56px var(--gutter) 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h3 { font: 600 11px/1.3 var(--font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.foot a { display: block; color: var(--text-body); padding: 4px 0; font-size: 15px; }
.foot a:hover { color: var(--gold-light); }
.foot .muted { margin-top: 12px; font-size: 14px; max-width: 24em; }
.foot .micro { margin-top: 14px; }

/* ── admin ── */
.adm-nav { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.adm-nav a { font: 600 12px/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-radius: var(--r-small); }
.adm-nav a[aria-current="page"] { color: var(--gold-light); background: var(--gold-surface); }
.adm-nav a:hover { color: var(--gold-light); }
form.settings { max-width: 860px; }
form.settings h3 { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
form.settings h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.notice.ok { border-color: var(--ok-border); background: var(--ok-surface); color: var(--ok); }
body.admin main { padding: 24px var(--gutter); max-width: var(--measure); margin: 0 auto; }
.adm-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.adm-head h1 { font-size: 34px; }
.filters a { font: 600 12px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-radius: var(--r-small); border: 1px solid transparent; }
.filters a[aria-current="true"] { color: var(--gold-light); border-color: var(--gold-dim); background: var(--gold-surface); }
.inq-row { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.inq-row .who { color: var(--text); font-size: 17px; }
.inq-row .who small { color: var(--muted); font-size: 14px; }
.inq-row .meta { margin-top: 4px; font: 600 11px/1.6 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.inq-row .msg { margin-top: 10px; white-space: pre-wrap; color: var(--text-body); max-width: 60em; }
.inq-row form { display: grid; gap: 8px; }
.inq-row textarea { min-height: 60px; margin-top: 0; font-size: 14px; }
.inq-row select { margin-top: 0; }
.inq-row button { min-height: 38px; }
.badge { font: 600 10px/1 var(--font-label); letter-spacing: .16em; text-transform: uppercase; padding: 4px 7px; border-radius: var(--r-badge); border: 1px solid var(--line-strong); background: var(--surface2); color: var(--muted); }
.badge.new { border-color: var(--gold-dim); background: var(--gold-surface); color: var(--gold-light); }
.badge.contacted { border-color: var(--info); background: rgba(96, 165, 250, .10); color: var(--info); }
.badge.closed { border-color: var(--ok-border); background: var(--ok-surface); color: var(--ok); }
.badge.investor { border-color: var(--warn-border); background: var(--warn-surface); color: var(--warn); }

/* ── phones ── */
@media (max-width: 900px) {
  .grid.three, .grid.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
  .cap { grid-template-columns: 1fr; gap: 10px; }
  .inq-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --top-h: 56px; --gutter: 16px; }
  section { padding: 52px var(--gutter); }
  .hero { padding: 56px var(--gutter) 48px; }
  .grid.two, .grid.three, .grid.four, .steps, form.inq .two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .top nav a { padding: 8px 8px; font-size: 12px; letter-spacing: .1em; }
  .top nav a.button { margin-left: 2px; padding: 9px 10px; }
  .brand .mark { font-size: 26px; }
  .brand .eye { width: 46px; height: 24px; }
  .lede { font-size: 18px; }
  .quote { font-size: 19px; }
  .facts td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── spacing utilities (the CSP forbids style attributes, so templates use these) ── */
.strip { padding-top: 40px; padding-bottom: 40px; }
.hero.tight { padding-bottom: 28px; }
.after-hero { padding-top: 24px; }
.mt-4 { margin-top: 4px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mt-36 { margin-top: 36px; }
