/* Experinova site · v2 (Convergence) — hero prototype */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
i { font-style: normal; } /* <i> is used for decorative dots; keep the italic face from downloading */
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: min(100% - 32px, var(--container)); } }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--t-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #1A1400; }
.btn-primary:hover { background: #FFE58A; }
.btn-primary .arrow { transition: transform 220ms var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-3); }
.btn .short { display: none; }
@media (max-width: 640px) { .btn .long { display: none; } .btn .short { display: inline; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5, 8, 17, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
/* a long, eased fade so the field dissolves under the bar without a visible edge */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 110px; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(5, 8, 17, 0.55) 0%, rgba(5, 8, 17, 0.42) 18%, rgba(5, 8, 17, 0.28) 38%,
    rgba(5, 8, 17, 0.15) 58%, rgba(5, 8, 17, 0.06) 78%, rgba(5, 8, 17, 0) 100%);
}
.nav-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.lang:hover, .lang[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-3); }
.lang svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px;
  background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 0.9rem; text-align: left; cursor: pointer;
}
.lang-menu button:hover:not([disabled]) { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.lang-menu button[aria-checked="true"] { color: var(--ink); }
.lang-menu button[disabled] { opacity: 0.5; cursor: default; }
.lang-menu small { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.1em; color: var(--ink); line-height: 1; }
.brand { min-width: 0; }
.brand span { white-space: nowrap; }
@media (max-width: 640px) {
  .nav .container { gap: 12px; }
  .brand span { font-size: 1.15rem; letter-spacing: 0.08em; }
  .lang { padding: 8px 10px; gap: 5px; }
  .lang span { display: none; } /* globe only on phones */
  .nav-actions { gap: 8px; }
  .btn { padding: 10px 14px; font-size: 0.9rem; }
}
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; font-size: 0.93rem; color: var(--ink-2); text-decoration: none; border-radius: var(--radius-pill); transition: color 200ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Nova: fixed behind the whole page ---------- */
/* Sized to the largest viewport, not the current one: on iOS Safari the toolbar shrinks and grows while scrolling,
   and a canvas that follows it is resized (and wiped to black) at every step. */
.nova-canvas { position: fixed; top: 0; left: 0; right: 0; z-index: 0; width: 100%; height: 100vh; height: 100lvh; display: block; pointer-events: none; }
.nova-fallback {
  position: fixed; z-index: 0; left: 50%; top: 14vh; transform: translateX(-50%); width: 40vmin; height: 40vmin;
  opacity: 0.5; pointer-events: none; display: none;
}
body.no-webgl .nova-fallback { display: block; }
.hero, .next { position: relative; z-index: 1; }
.strip { position: relative; z-index: 2; }

/* ---------- Hero: headline and the question, front and center ---------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 36vh);
  padding-bottom: var(--s-8);
  overflow: hidden; /* the vignette behind the copy extends past the container; never let it widen the page */
}
.hero-center { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; }
.hero-center::before {
  content: ""; position: absolute; inset: -18% -22%; z-index: -1; pointer-events: none;
  /* an explicit ellipse that reaches full transparency inside the box, so the box edge never shows */
  background: radial-gradient(ellipse 46% 42% at 50% 54%, rgba(5, 8, 17, 0.78) 0%, rgba(5, 8, 17, 0.62) 30%, rgba(5, 8, 17, 0.36) 60%, rgba(5, 8, 17, 0.12) 85%, rgba(5, 8, 17, 0) 100%);
}
.hero-center .eyebrow { margin-bottom: var(--s-5); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-shadow: 0 2px 28px rgba(5, 8, 17, 0.85); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: var(--s-5); font-size: 1.1rem; color: var(--ink-2); max-width: 38em; }

/* Query */
.query { margin-top: var(--s-6); width: 100%; max-width: 680px; }
.query-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 6px 6px 6px 18px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.query-box:focus-within { border-color: rgba(0, 240, 255, 0.55); box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.10); }
.query-box .mark { font-family: var(--font-mono); color: var(--cyan); font-size: 0.95rem; flex: none; }
.query-box input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink);
  font-family: var(--font-body); font-size: 1.05rem; padding: 12px 4px;
}
.query-box input::placeholder { color: var(--ink-3); }
.query-box button {
  flex: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--cyan); color: #032830;
  display: grid; place-items: center; cursor: pointer; transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.query-box button:hover { background: #7FF7FF; }
.query-box button:active { transform: scale(0.96); }
.query-box button svg { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: var(--s-4); }
.chips::before { content: "Try it as"; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: var(--radius-pill);
  padding: 6px 12px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background-color 200ms var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.is-active { border-color: rgba(0, 240, 255, 0.5); color: var(--ink); background: rgba(0, 240, 255, 0.06); }
.chip i { font-style: normal; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.chip[data-tier="cyan"] i { background: var(--cyan); }
.chip[data-tier="cobalt"] i { background: var(--cobalt-2); }
.chip[data-tier="gold"] i { background: var(--gold); }

.query-status { margin-top: var(--s-4); font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.02em; }
.query-status .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: middle; opacity: 0; transition: opacity 200ms; }
.query-status.is-busy .dot { opacity: 1; animation: pulse 900ms ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Results: a row of three beneath the question, only after someone asks */
/* The wrap animates its height so the page below slides rather than jumps when cards arrive or leave */
.results-wrap { overflow: hidden; height: 0; transition: height 620ms var(--ease); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: var(--s-7); padding-bottom: 4px; max-width: 1100px; margin-inline: auto; }
/* Task cards: what got done · behind it · still needs a person */
.task {
  background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; text-align: left;
  opacity: 0; transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 520ms var(--ease), border-color 300ms var(--ease);
  display: flex; flex-direction: column;
}
.task.is-in { opacity: 1; transform: none; }
.task.is-top { border-color: rgba(245, 208, 97, 0.32); }
.task-head { display: grid; gap: 6px; margin-bottom: 10px; }
.task-kind { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.task[data-kind="outcome"] .task-kind { color: var(--gold); }
.task[data-kind="needs"] .task-kind { color: var(--cyan); }
.task-title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.2; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task-list li { font-size: 0.86rem; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.task-list i { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; position: relative; font-style: normal; }
.task-list i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.task-list li[data-state="ok"] i { background: rgba(0, 240, 255, 0.14); }
.task-list li[data-state="ok"] i::before { inset: 4px; background: var(--cyan); }
.task-list li[data-state="flag"] i { background: rgba(245, 208, 97, 0.16); }
.task-list li[data-state="flag"] i::before { inset: 4px; background: var(--gold); }
.task-list li[data-state="wait"] i { border: 1px solid var(--ink-3); }
.task-list li[data-state="wait"] i::before { inset: 5px; background: var(--ink-3); }
.task-list li[data-state="did"] i { border: 1px solid var(--line-2); }
.task-list li[data-state="did"] i::before { inset: 5px; background: var(--cobalt-2); }
.task-list li[data-state="you"] i { border: 1px solid rgba(0, 240, 255, 0.5); }
.task-list li[data-state="you"] i::before { inset: 4px; background: var(--cyan); }
.task-list li[data-state="flag"] { color: var(--ink); }
.task-foot { margin-top: auto; padding-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.03em; }
.task-link { display: inline-block; margin-top: auto; padding-top: 12px; font-size: 0.86rem; color: var(--cyan); text-decoration: none; }
.task-link:hover { text-decoration: underline; }
.results-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 960px) { .results { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--nav-h) + 30vh); min-height: 0; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero .lede { font-size: 1rem; }
  .chips::before { width: 100%; text-align: center; margin: 0 0 2px; }
}

/* ---------- Strip: what the engine understands ---------- */
.strip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 12, 22, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 16px 0; overflow: hidden; }
.strip::before, .strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.strip::before { left: 0; background: linear-gradient(90deg, rgba(5,8,17,0.95), transparent); }
.strip::after { right: 0; background: linear-gradient(270deg, rgba(5,8,17,0.95), transparent); }
.strip-label { position: absolute; left: 24px; top: -9px; z-index: 2; background: var(--void); padding: 0 8px; }
.marquee { display: flex; width: max-content; gap: 40px; animation: marquee 48s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; letter-spacing: 0.02em; }
.marquee li b { color: var(--ink-2); }
.marquee li.redacted { color: var(--ink-3); }
.marquee li.redacted b { background: var(--ink-3); color: transparent; border-radius: 3px; user-select: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- The horizon: a planet's edge, in daylight tones, rising over the field ---------- */
/* The container is tall enough that every glow and the light column fade out inside it:
   nothing is clipped at the top, so there is no edge between the void and the atmosphere. */
.horizon { --rim: 70%; position: relative; z-index: 1; height: 460px; margin-top: -150px; overflow: hidden; pointer-events: none; }
/* the planet: a circle far wider than the screen so only a gentle arc shows; its fill is the daylight ground */
.horizon-planet {
  position: absolute; left: 50%; top: var(--rim); width: 340vw; height: 340vw; transform: translateX(-50%);
  border-radius: 50%; background: #F3F5F8;
  box-shadow:
    0 -1px 4px rgba(255, 255, 255, 0.7),
    0 -6px 22px rgba(255, 255, 255, 0.45),
    0 -18px 60px rgba(190, 236, 255, 0.30),
    0 -50px 140px rgba(0, 200, 230, 0.16),
    0 -100px 260px rgba(37, 99, 235, 0.13),
    0 -160px 340px rgba(37, 99, 235, 0.05);
}
/* a fuzzy line of light sitting on the rim instead of a hard stroke */
.horizon-rim {
  position: absolute; left: 50%; top: var(--rim); width: 340vw; height: 340vw; transform: translateX(-50%);
  border-radius: 50%; box-shadow: 0 0 22px 6px rgba(255, 255, 255, 0.55), 0 0 60px 18px rgba(200, 240, 255, 0.22);
  filter: blur(7px);
}
/* the sun: a bright spot where the light meets the rim */
.horizon-sun {
  position: absolute; left: 50%; top: var(--rim); width: 560px; height: 160px; transform: translate(-50%, -52%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 246, 214, 0.7) 22%, rgba(245, 208, 97, 0.26) 45%, rgba(0, 240, 255, 0.09) 62%, rgba(0, 0, 0, 0) 76%);
  filter: blur(12px);
}
/* the column of light rising from the rim; long enough to fade to nothing well before the top */
.horizon-beam {
  position: absolute; left: 50%; bottom: calc(100% - var(--rim)); width: 70px; height: 230px; transform: translateX(-50%);
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8) 0%, rgba(255, 246, 214, 0.42) 22%, rgba(245, 208, 97, 0.16) 48%, rgba(245, 208, 97, 0.05) 74%, rgba(0, 0, 0, 0) 100%);
  filter: blur(10px);
}
/* The bottom horizon: the planet's lower edge, glow and light column pointing down into the void */
.horizon--bottom { --rim: 30%; margin-top: -1px; }
.horizon--bottom .horizon-planet {
  top: auto; bottom: calc(100% - var(--rim));
  box-shadow:
    0 1px 4px rgba(255, 255, 255, 0.7),
    0 6px 22px rgba(255, 255, 255, 0.45),
    0 18px 60px rgba(190, 236, 255, 0.30),
    0 50px 140px rgba(0, 200, 230, 0.16),
    0 100px 260px rgba(37, 99, 235, 0.13),
    0 160px 340px rgba(37, 99, 235, 0.05);
}
.horizon--bottom .horizon-rim { top: auto; bottom: calc(100% - var(--rim)); }
.horizon--bottom .horizon-sun { transform: translate(-50%, -48%); }
.horizon--bottom .horizon-beam {
  bottom: auto; top: var(--rim);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 246, 214, 0.42) 22%, rgba(245, 208, 97, 0.16) 48%, rgba(245, 208, 97, 0.05) 74%, rgba(0, 0, 0, 0) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .horizon-sun { animation: sunBreath 9s ease-in-out infinite; }
  .horizon-beam { animation: beamBreath 9s ease-in-out infinite; }
}
@keyframes sunBreath { 50% { opacity: 0.82; transform: translate(-50%, -52%) scaleX(1.06); } }
@keyframes beamBreath { 50% { opacity: 0.75; } }

/* ---------- Daylight: the product section on a light ground ---------- */
.daylight {
  --d-bg: #F3F5F8; --d-panel: #FFFFFF; --d-ink: #0B1020; --d-ink-2: #3B4457; --d-ink-3: #5B6578;
  --d-line: #D9DEE7; --d-line-2: #C4CBD8; --d-soft: #EEF2F7;
  --d-cyan: #00709F; --d-cyan-bg: #E3F6FB; --d-gold: #745B0A; --d-gold-bg: #FBF1CD; --d-cobalt: #2457D6; --d-cobalt-bg: #E7EDFB;
  position: relative; z-index: 1; background: var(--d-bg); color: var(--d-ink);
  margin-top: 0; padding: 48px 0 96px;
}
.dl-head { max-width: 720px; margin-bottom: 32px; }
.dl-head .eyebrow { display: block; margin-bottom: 14px; color: var(--d-ink-3); }
.dl-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; color: var(--d-ink); }
.dl-sub { margin-top: 14px; font-size: 1.05rem; color: var(--d-ink-2); max-width: 40em; }
.dl-foot { margin-top: 18px; font-size: 0.86rem; color: var(--d-ink-3); max-width: 60em; }

.product-panel {
  background: var(--d-panel); border: 1px solid var(--d-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 16, 32, 0.05), 0 24px 60px -30px rgba(11, 16, 32, 0.35);
}
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); flex-wrap: wrap; }
.pp-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.pp-tab { border: 0; background: transparent; color: var(--d-ink-2); padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.pp-tab:hover { background: var(--d-soft); color: var(--d-ink); }
.pp-tab.is-active { background: var(--d-ink); color: #fff; }
.pp-tab:focus-visible { outline-color: var(--d-cyan); }

.pp-switch { display: flex; align-items: center; gap: 10px; }
.pp-switch-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-ink-3); margin-right: 4px; }
.pp-role { font-size: 0.88rem; font-weight: 600; color: var(--d-ink-3); cursor: pointer; transition: color 180ms; }
.pp-role.is-on { color: var(--d-ink); }
.pp-toggle { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 0; background: var(--d-cyan); cursor: pointer; padding: 0; transition: background-color 200ms var(--ease); }
.pp-toggle i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 220ms var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.pp-toggle[aria-checked="true"] { background: var(--d-gold); }
.pp-toggle[aria-checked="true"] i { transform: translateX(20px); }
.pp-toggle:focus-visible { outline-color: var(--d-cyan); }

.pp-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 520px; }
.pp-side { border-right: 1px solid var(--d-line); padding: 14px 12px; background: #FAFBFD; display: flex; flex-direction: column; gap: 4px; }
.pp-side-title { margin: 4px 8px 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-ink-3); }
.pp-side-item { display: grid; gap: 2px; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--d-ink-2); transition: background-color 160ms var(--ease); }
.pp-side-item:hover { background: var(--d-soft); }
.pp-side-item:focus-visible { outline-color: var(--d-cyan); }
.pp-side-item b { font-weight: 600; color: var(--d-ink); font-size: 0.9rem; }
.pp-side-item span { font-size: 0.8rem; color: var(--d-ink-3); }
.pp-side-item.is-active { background: var(--d-soft); }
.pp-side-item.is-active b { color: var(--d-ink); }

.pp-main { padding: 20px 22px; display: grid; gap: 16px; align-content: start; transition: opacity 160ms var(--ease); }
.pp-main.is-fading { opacity: 0; }
.pp-block { border: 1px solid var(--d-line); border-radius: 12px; padding: 14px 16px; background: var(--d-panel); }
.pp-block.is-private-block { border-style: dashed; }
.pp-block-title { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-ink-3); }

.pp-rows { display: grid; }
.pp-row { display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2fr) auto; gap: 14px; align-items: start; padding: 9px 0; border-top: 1px solid var(--d-line); font-size: 0.88rem; }
.pp-row:first-child { border-top: 0; }
.pp-label { color: var(--d-ink); font-weight: 600; }
.pp-value { color: var(--d-ink-2); line-height: 1.45; }
.pp-private-value { color: var(--d-cobalt); }
.pp-row.is-private .pp-label::after { content: "private"; margin-left: 8px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-ink-3); }
.pp-row.is-withheld { color: var(--d-ink-3); }
.pp-withheld { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--d-ink-3); background: var(--d-soft); border-radius: 6px; padding: 3px 8px; }
.pp-withheld i { width: 8px; height: 8px; border-radius: 2px; background: var(--d-ink-3); opacity: 0.6; }
.pp-pill { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pp-pill[data-state="ok"] { background: var(--d-cyan-bg); color: var(--d-cyan); }
.pp-pill[data-state="flag"] { background: var(--d-gold-bg); color: var(--d-gold); }
.pp-pill[data-state="wait"] { background: var(--d-soft); color: var(--d-ink-3); }
.pp-pill[data-state="other"] { background: var(--d-cobalt-bg); color: var(--d-cobalt); }

.pp-chat { display: grid; gap: 8px; margin-bottom: 10px; }
.pp-msg { max-width: 72%; padding: 9px 12px; border-radius: 14px; font-size: 0.88rem; line-height: 1.4; position: relative; }
.pp-msg p { margin: 0; }
.pp-msg[data-who="them"] { background: var(--d-soft); color: var(--d-ink); border-bottom-left-radius: 4px; justify-self: start; }
.pp-msg[data-who="us"] { background: var(--d-cobalt); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.pp-msg-at { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.64rem; opacity: 0.7; }

.pp-draft { margin: 0; padding: 12px 14px; background: var(--d-soft); border-radius: 10px; font-size: 0.9rem; line-height: 1.5; color: var(--d-ink); }
.pp-draft-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.pp-channel { font-family: var(--font-mono); font-size: 0.72rem; color: var(--d-ink-3); letter-spacing: 0.04em; }
.pp-btn { border: 0; background: var(--d-ink); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.86rem; cursor: pointer; }
.pp-btn:disabled { background: var(--d-cyan-bg); color: var(--d-cyan); cursor: default; }

.pp-track { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; position: relative; }
.pp-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 7px; height: 2px; background: var(--d-line-2); }
.pp-track li { position: relative; text-align: center; font-size: 0.78rem; display: grid; justify-items: center; gap: 4px; }
.pp-track i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--d-line-2); background: #fff; position: relative; z-index: 1; }
.pp-track li[data-state="done"] i { background: var(--d-cyan); border-color: var(--d-cyan); }
.pp-track li[data-state="active"] i { border-color: var(--d-gold); background: var(--d-gold-bg); box-shadow: 0 0 0 4px rgba(245, 208, 97, 0.35); }
.pp-track b { font-weight: 600; color: var(--d-ink); }
.pp-track li[data-state="todo"] b { color: var(--d-ink-3); font-weight: 400; }
.pp-track span { color: var(--d-ink-3); font-size: 0.72rem; }

.pp-timeline { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--d-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pp-timeline li { display: grid; gap: 2px; font-size: 0.8rem; color: var(--d-ink-3); padding-left: 10px; border-left: 2px solid var(--d-cobalt); }
.pp-timeline b { font-family: var(--font-mono); color: var(--d-ink); }

.pp-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--d-line); background: #FAFBFD; font-size: 0.84rem; color: var(--d-ink-2); }
.product-panel.is-restricted .pp-note { color: var(--d-gold); }

@media (max-width: 900px) {
  .pp-body { grid-template-columns: 1fr; }
  .pp-side { border-right: 0; border-bottom: 1px solid var(--d-line); flex-direction: row; overflow-x: auto; gap: 6px; }
  .pp-side-title { display: none; }
  .pp-side-item { flex: none; min-width: 200px; }
  .pp-row { grid-template-columns: 1fr; gap: 4px; }
  .pp-track { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .pp-track::before { display: none; }
  .pp-timeline { grid-template-columns: repeat(2, 1fr); }
  .pp-msg { max-width: 92%; }
  .daylight { padding: 32px 0 72px; }
  .horizon { height: 300px; --rim: 72%; margin-top: -100px; }
  .horizon--bottom { --rim: 28%; margin-top: -1px; }
  .horizon-planet, .horizon-rim { width: 420vw; height: 420vw; }
  .horizon-beam { height: 150px; width: 44px; }
  .horizon-sun { width: 360px; height: 110px; }
}

/* ---------- How it works: the mark as a diagram ---------- */
.daylight.how { padding-top: 32px; margin-top: -1px; } /* overlap a pixel so no seam of the dark body shows between light sections */
/* the divider: a line of the three tiers fading at both ends, with the star at its center.
   It sits exactly halfway between the product section's content and the next heading. */
.dl-divider { position: relative; height: 16px; margin: 0 auto 128px; width: min(360px, 70%); display: flex; align-items: center; justify-content: center; }
.dl-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 1px;
  background: linear-gradient(90deg, rgba(0,180,216,0) 0%, #00B4D8 22%, #2563EB 50%, #D4AF37 78%, rgba(212,175,55,0) 100%);
}
.dl-divider i {
  position: relative; width: 16px; height: 16px; display: block; background: #F3F5F8; box-shadow: 0 0 0 6px #F3F5F8;
}
.dl-divider i::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #00B4D8, #2563EB 50%, #D4AF37);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@media (max-width: 900px) { .daylight.how { padding-top: 24px; } .dl-divider { margin-bottom: 88px; } }
/* anchored sections land with their small header just below the fixed nav */
#product, #how, #contact, #security { scroll-margin-top: calc(var(--nav-h) + 16px); }
.streams {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 44%); grid-template-rows: repeat(3, 1fr) auto;
  column-gap: 32px; align-items: center; margin-top: 8px;
}
.stream { grid-column: 1; padding: 18px 0; border-top: 1px solid var(--d-line); }
.stream:nth-of-type(1) { border-top: 0; }
.stream h3, .decision h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; color: var(--d-ink); display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.stream h3 i, .decision h3 i { width: 22px; height: 6px; border-radius: 3px; flex: none; }
.stream[data-tier="cyan"] h3 i { background: linear-gradient(90deg, #8FE9F5, #00B4D8); }
.stream[data-tier="cobalt"] h3 i { background: linear-gradient(90deg, #9DB8F5, #2563EB); }
.stream[data-tier="gold"] h3 i { background: linear-gradient(90deg, #F6E7B5, #D4AF37); }
.stream p, .decision p { font-size: 0.98rem; color: var(--d-ink-2); max-width: 36em; line-height: 1.55; }
.streams-svg { grid-column: 2; grid-row: 1 / 4; width: 100%; height: 100%; max-height: 420px; display: block; overflow: visible; }
.hs-stream { fill: none; stroke-width: 20; stroke-linecap: round; }
.hs-pulse { fill: none; stroke: #FFFFFF; stroke-width: 8; stroke-linecap: round; opacity: 0.7; stroke-dasharray: 34 600; stroke-dashoffset: 634; }
@media (prefers-reduced-motion: no-preference) { .hs-pulse { animation: hsPulse 6s linear infinite; } }
@keyframes hsPulse { to { stroke-dashoffset: 0; } }
.decision { grid-column: 1 / -1; margin-top: 8px; padding: 22px 26px; border-radius: 14px; background: var(--d-panel); border: 1px solid var(--d-line); display: grid; grid-template-columns: minmax(0, 1fr); }
.decision h3 i { width: 14px; height: 14px; border-radius: 0; background: linear-gradient(135deg, #00B4D8, #2563EB 50%, #D4AF37); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@media (max-width: 900px) {
  .streams { grid-template-columns: 1fr; grid-template-rows: auto; }
  .streams-svg { grid-column: 1; grid-row: auto; max-height: 260px; margin: 12px auto 4px; }
  .stream { border-top: 1px solid var(--d-line); }
}

/* ---------- Trust: one line, three marks ---------- */
.daylight.trust { padding-top: 32px; margin-top: -1px; padding-bottom: 72px; }
.trust-row { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--d-line); }
.trust-row li { padding: 24px 28px 8px 0; border-left: 1px solid var(--d-line); padding-left: 24px; }
.trust-row li:first-child { border-left: 0; padding-left: 0; }
.trust-mark { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--d-ink-3); margin-bottom: 12px; }
.trust-row h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; color: var(--d-ink); margin-bottom: 8px; line-height: 1.25; }
.trust-row p { font-size: 0.92rem; color: var(--d-ink-2); line-height: 1.5; }
@media (max-width: 900px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-row li { border-left: 0; padding-left: 0; border-top: 1px solid var(--d-line); padding-top: 20px; }
  .trust-row li:first-child { border-top: 0; }
}

/* ---------- Contact: back to the void ---------- */
.contact { position: relative; z-index: 2; padding: 0 0 112px; margin-top: -170px; color: var(--ink); } /* rides up over the tail of the light column, like the strip over the top horizon */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-copy { max-width: 520px; }
.contact-star { width: 72px; height: 72px; display: block; margin-bottom: 18px; overflow: visible; }
@media (prefers-reduced-motion: no-preference) { .contact-star { animation: starBreath 8s ease-in-out infinite; transform-origin: center; } }
@keyframes starBreath { 50% { transform: scale(1.08) rotate(3deg); opacity: 0.9; } }
.contact-copy .eyebrow { display: block; margin-bottom: 14px; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.contact .lede { margin-top: 16px; font-size: 1.08rem; color: var(--ink-2); }
.contact-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.contact-points li { font-size: 0.92rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.contact-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.contact-panel { background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 22px; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { display: grid; gap: 14px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.cf-opt { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: rgba(5, 8, 17, 0.55); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink);
  font: 500 0.95rem var(--font-body); padding: 11px 12px; outline: 0; transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form select option { background: var(--panel-solid); }
.contact-form textarea { resize: vertical; min-height: 84px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(0, 240, 255, 0.55); box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.10); }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.cf-alt { font-size: 0.84rem; color: var(--ink-3); }
.cf-alt a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.cf-alt a:hover { color: var(--ink); }
.cf-note { margin: 0; font-size: 0.86rem; color: var(--cyan); }
@media (max-width: 900px) {
  .contact { padding: 0 0 72px; margin-top: -110px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ---------- Placeholder for what comes next ---------- */
.next {
  padding: var(--s-9) 0; text-align: center; color: var(--ink-3); font-size: var(--t-small);
}
.daylight ~ .next { background: #F3F5F8; color: #6B7488; margin-top: -1px; }
.next p { max-width: 44em; margin-inline: auto; }
.next .eyebrow { display: block; margin-bottom: var(--s-3); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--ink-3); background: rgba(5, 8, 17, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 0.8fr; gap: 32px; }
.footer-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.1em; color: var(--ink); }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.55; max-width: 30em; color: var(--ink-3); }
.footer-col h3 { margin: 4px 0 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.footer-col a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Secondary pages (Company, Privacy) ---------- */
.page main { position: relative; z-index: 1; }
.page-hero { padding: calc(var(--nav-h) + 20vh) 0 56px; }
.page-hero--short { padding-top: calc(var(--nav-h) + 72px); }
.page-copy { max-width: 720px; }
.page-copy .eyebrow { display: block; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-shadow: 0 2px 28px rgba(5, 8, 17, 0.85); }
.page-hero .lede { margin-top: 20px; font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.page-section { padding: 40px 0 48px; }
.page-section + .page-section { border-top: 1px solid var(--line); }
.page-section h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.page-section p { color: var(--ink-2); max-width: 40em; margin-bottom: 14px; line-height: 1.6; }
.page-section p:last-child { margin-bottom: 0; }
.page-note { font-size: 0.92rem; color: var(--ink-3); }
.page-note a, .legal a { color: var(--cyan); text-decoration: none; }
.page-note a:hover, .legal a:hover { text-decoration: underline; }
.beliefs { display: grid; gap: 28px; }
.belief h2 { font-size: 1.35rem; margin-bottom: 8px; }
.desks { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 14px; }
.desks li { color: var(--ink-2); line-height: 1.55; padding-left: 18px; position: relative; }
.desks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.desks b { color: var(--ink); font-weight: 600; }
.page-cta { padding-bottom: 96px; }
.page-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.legal h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p b { color: var(--ink); font-weight: 600; }
.page--plain .page-hero--short { padding-bottom: 32px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul:last-child { display: none; }
  .task { transition: none; opacity: 1; transform: none; }
  .results-wrap { transition: none; }
  .query-status.is-busy .dot { animation: none; }
}
