/* phenlabs.com coming-soon page (2026-10-01).
   The platform's design system (public/css/system.css) in miniature: black, white, one deep blue,
   1px hairlines, Geist Mono as the voice and Aeonik for the wordmark only. Self-contained on purpose:
   this host serves nothing else of the platform, so it cannot load system.css.
   ⚑ Both typefaces are SELF-HOSTED: no request leaves for Google Fonts, so a visitor's IP reaches no third
     party for a font, and the CSP allows 'self' only. Geist Mono is the OFL variable font from Vercel's
     `geist` npm package 1.7.2 (fonts/GeistMono-OFL.txt travels with it, as the licence requires). */

@font-face {
  font-family: "Geist Mono";
  src: url("/cs/fonts/GeistMono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "PhenLabs Aeonik";
  src: url("/fonts/0111709e9c3a944f-s.p.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #05060A;
  --bg-raise: #0A0D14;
  --line: rgba(235, 240, 255, 0.07);
  --line-strong: rgba(235, 240, 255, 0.14);
  --ink: #F2F5FC;
  --ink-2: #99A3B8;
  --ink-3: #8A96AC;
  --blue: #0A51F2;
  --blue-hover: #2563F5;
  --blue-bright: #3D7BFD;
  --blue-neon: #6FA0FF;
  --teal: #2BC8B7;
  --amber: #D9A441;
  --font-ui: 'Geist Mono', ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  --font-brand: "PhenLabs Aeonik", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(61, 123, 253, 0.32); color: var(--ink); }

/* ── background: one blue light source and a fading grid ── */
.cs-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cs-glow {
  position: absolute; left: 50%; top: -34vh; width: min(1200px, 140vw); height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10, 81, 242, 0.34), rgba(10, 81, 242, 0.10) 55%, transparent 100%);
  filter: blur(18px);
}
.cs-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(235, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(235, 240, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
}

/* ── layout ── */
.cs {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: 640px;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 132px) clamp(20px, 5vw, 32px) 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.cs-brand {
  display: inline-flex; align-items: center; color: var(--ink); text-decoration: none;
  margin-left: -10px; margin-bottom: clamp(40px, 7vh, 64px);
}
.cs-brand-mark { width: 80px; height: 46px; display: block; object-fit: cover; object-position: center; }
.cs-brand-wordmark {
  font-family: var(--font-brand); font-weight: 500; font-size: 23px; letter-spacing: 0.005em;
  margin-left: -8px;
}
.cs-brand:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 6px; border-radius: 8px; }

.cs-pill {
  display: inline-flex; align-items: center;
  margin: 0 0 22px; padding: 6px 14px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: #C9D7FF;
  background: rgba(10, 81, 242, 0.10);
  border: 1px solid rgba(111, 160, 255, 0.30);
  border-radius: 999px;
}

.cs-title {
  margin: 0;
  font-size: clamp(2.05rem, 6.2vw, 3.35rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cs-lede {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1rem;
  text-wrap: pretty;
}

.cs-panel { width: 100%; max-width: 500px; margin-top: 36px; }
.cs-state { width: 100%; }

/* ── form ── */
.cs-form { display: flex; gap: 10px; width: 100%; }
.cs-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--bg-raise);
  border: 1px solid rgba(235, 240, 255, 0.42); /* resting boundary >= 3:1 (WCAG 1.4.11), as system.css */
  border-radius: 6px;
  transition: border-color 170ms var(--ease), box-shadow 220ms var(--ease);
}
.cs-input::placeholder { color: var(--ink-3); }
.cs-input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(61, 123, 253, 0.25); }
.cs-input[readonly] { color: var(--ink-2); font-size: 0.86rem; }

.cs-btn {
  flex: none; height: 48px; padding: 0 22px;
  font: inherit; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.005em;
  color: #fff; cursor: pointer;
  background: linear-gradient(180deg, var(--blue-hover), var(--blue));
  border: 1px solid rgba(120, 165, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 8px 28px -10px rgba(10, 81, 242, 0.7);
  transition: background 170ms var(--ease), box-shadow 220ms var(--ease), transform 170ms var(--ease);
}
/* ⚑ Hover DARKENS: the lighter blue (#3D7BFD) put white text at 3.9:1, below WCAG’s 4.5. This keeps ≥ 5.8:1 at the lightest point. */
.cs-btn:hover { background: linear-gradient(180deg, #1D58E6, #0844D2); box-shadow: 0 10px 32px -10px rgba(10, 81, 242, 0.85); }
.cs-btn:active { transform: translateY(1px); }
.cs-btn:focus-visible { outline: 2px solid var(--blue-neon); outline-offset: 3px; }
.cs-btn[disabled] { opacity: 0.7; cursor: progress; }
.cs-btn-ghost {
  background: transparent; box-shadow: none; color: var(--ink);
  border-color: var(--line-strong);
}
.cs-btn-ghost:hover { background: rgba(235, 240, 255, 0.04); border-color: rgba(111, 160, 255, 0.5); }

.cs-fine { margin: 14px 0 0; font-size: 0.8rem; line-height: 1.6; color: var(--ink-3); }
.cs-link {
  padding: 0; font: inherit; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.cs-link:hover { color: var(--blue-neon); }
.cs-link:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 2px; }

/* honeypot: off-screen, never display:none (bots skip hidden fields less reliably than off-screen ones) */
.cs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cs-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── notices and cards ── */
.cs-notice {
  margin-bottom: 14px; padding: 11px 14px;
  font-size: 0.84rem; line-height: 1.55; text-align: left;
  border: 1px solid; border-radius: 10px;
}
/* ⚑ The live region is never display:none — a screen reader must already be listening when text arrives.
   Empty, it simply takes no space. */
.cs-notice:empty { margin: 0; padding: 0; border: 0; }
.cs-notice.is-ok { color: #7FE0D3; border-color: rgba(43, 200, 183, 0.38); background: rgba(43, 200, 183, 0.08); }
.cs-notice.is-warn { color: #E9C27A; border-color: rgba(217, 164, 65, 0.40); background: rgba(217, 164, 65, 0.09); }

.cs-card {
  text-align: left;
  padding: 22px 22px 20px;
  background: rgba(10, 13, 20, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px -30px rgba(10, 81, 242, 0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.cs-card p { margin: 10px 0 0; color: var(--ink-2); font-size: 0.92rem; }
.cs-card-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink);
}
.cs-card-title:focus { outline: none; }
.cs-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: #04110F; font-size: 0.78rem; font-weight: 700;
}
.cs-card strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.cs-pos {
  margin: 14px 0 0 !important;
  font-size: clamp(2.4rem, 8vw, 3rem) !important; line-height: 1; font-weight: 600;
  letter-spacing: -0.04em; color: var(--blue-neon) !important;
}

.cs-notyou { margin-top: 16px !important; }
.cs-refer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.cs-refer-title { margin: 0 !important; color: var(--ink) !important; font-weight: 600; font-size: 0.9rem !important; }
.cs-refer .cs-fine { margin-top: 4px; }
.cs-copy { display: flex; gap: 8px; margin-top: 12px; }
.cs-copy .cs-input, .cs-copy .cs-btn { height: 42px; }

/* ── footer ── */
.cs-foot {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  padding: 24px 20px 28px;
  font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.cs-foot-links { display: inline-flex; gap: 18px; }
.cs-foot a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(153, 163, 184, 0.4); text-underline-offset: 3px; }
.cs-foot a:hover { color: var(--blue-neon); }
.cs-foot a:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 2px; }

.cs-fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(153, 163, 184, 0.45); }
.cs-fine a:hover { color: var(--blue-neon); }
.cs-fine a:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 2px; }

/* ── legal pages (/terms, /privacy) ── */
.cs-doc-head {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 32px) 0;
}
.cs-doc-head .cs-brand { margin-bottom: 0; }
.cs-doc {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: clamp(36px, 7vh, 72px) clamp(20px, 5vw, 32px) 56px;
  color: var(--ink-2); font-size: 0.94rem; line-height: 1.75;
}
.cs-doc-kicker { margin: 0 0 10px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-neon); }
.cs-doc h1 { margin: 0; color: var(--ink); font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; }
.cs-doc-date { margin: 10px 0 32px; font-size: 0.8rem; color: var(--ink-3); }
.cs-doc h2 { margin: 34px 0 8px; color: var(--ink); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.cs-doc p { margin: 0 0 12px; }
.cs-doc ul { margin: 0 0 12px; padding-left: 1.2em; }
.cs-doc li { margin-bottom: 6px; }
.cs-doc li::marker { color: var(--blue-bright); }
.cs-doc strong { color: var(--ink); font-weight: 600; }
.cs-doc a { color: var(--blue-neon); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(111, 160, 255, 0.45); }
.cs-doc a:hover { color: #A9C5FF; }
.cs-doc a:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 2px; }
.cs-doc-back { margin-top: 40px !important; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 0.86rem; }

/* ── small screens ── */
@media (max-width: 520px) {
  /* ⚑ In a column, `flex: 1` is a flex-basis of 0 on the HEIGHT axis and the input collapses to its
     content box; pin it back to a full-height, full-width control (system.css has the same rule). */
  .cs-form, .cs-copy { flex-direction: column; }
  .cs-form .cs-input { flex: none; width: 100%; height: 48px; }
  .cs-copy .cs-input { flex: none; width: 100%; height: 42px; }
  .cs-btn { width: 100%; }
  .cs-foot { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-input, .cs-btn { transition: none; }
}
