/* ─────────────────────────────────────────────────────────────────────────────
   VYRA'S ROOM — the stylesheet for /apply, and nothing else.

   The application is a conversation, so this is not a page with a hero on it.
   It is a room: she is at the top, her first sentence is the first thing in it,
   and the field is where your answer goes. There is no eyebrow, no headline, no
   subline and no promise row, because the stacked hero is the one composition
   every landing page already ships and none of it is what this is.

   It borrows deliberately:
     · her orb is the one from the home page and The Mind, unchanged, so the
       presence a visitor already met is the presence that answers here;
     · her read of your shelf is drawn in Proof's evidence language — a dark
       panel, mono figures, a rule between places — so the numbers she finds in
       your store look like the numbers that page uses to prove anything;
     · her four-point mark is the mark from the Founding Circle card, which is
       where most people will have come from.

   Nothing here lights up from inside, nothing floats on a blurred shadow, and
   no line of text waits for an animation before it exists.
   ───────────────────────────────────────────────────────────────────────────── */

html,
body {
  margin: 0;
  background: #101010;
}

.vx {
  --page: #101010;
  --card: #141a23;
  --rule: #202936;
  --edge: #2a3442;
  --hot: #e8a33d;
  --wait: #8fb4e0;
  --brand: #4a90e2;
  --ink: #ffffff;
  --ink-2: #c9cfd4;
  --ink-3: #a2aab1;
  --ink-4: #8a93a0;
  --ink-5: #737d88;
  --ink-6: #5f6874;
  --sans: "PP Mori", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --vx-gut: clamp(20px, 4.2vw, 56px);
  --vx-measure: 720px;
  --vx-top: 76px;

  /* Not inset:0. position:fixed anchors to the LAYOUT viewport, which on a phone
     includes the strip behind the URL bar, so the dock lands off-screen and the
     hint under the field disappears. dvh handles the chrome; the keyboard is
     handled from script, because only visualViewport knows where the visible
     bottom actually is once it opens. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 9000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: var(--page);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.vx[hidden] { display: none; }

/* ── it carries its own floor ───────────────────────────────────────────────
   This room opens over four different pages, and it cannot assume any of their
   resets. On the home page it did: nothing there zeroes a paragraph, so every
   line she spoke inherited the browser's own 1em margin and each turn stood at
   62px instead of 26, which pulled the whole conversation apart. Scoped to .vx,
   so none of it reaches the page underneath. */
.vx *,
.vx *::before,
.vx *::after { box-sizing: border-box; }

.vx p,
.vx h1,
.vx h2,
.vx h3,
.vx figure,
.vx ul,
.vx ol { margin: 0; }

.vx ul,
.vx ol { padding: 0; list-style: none; }

.vx a { color: inherit; text-decoration: none; }

.vx button { font: inherit; color: inherit; }

.vx svg { display: block; }

/* The room's own light: one soft fall from where she sits, never a blob behind
   her. Grain rides on top of the gradient and under every word, so a long tonal
   run cannot band and nothing a visitor has to read is textured. */
.vx__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #161c24 0%, #12171d 22%, var(--page) 58%, var(--page) 100%);
}

.vx__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ── her presence, docked at the top ───────────────────────────────────────── */

.vx__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--vx-top);
  padding: 14px var(--vx-gut);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  background: none;
}

.vx__orb {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.vx__who {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.vx__name {
  font-size: .95em;
  color: var(--ink);
  letter-spacing: .01em;
}

.vx__state {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vx.is-think .vx__state { color: var(--wait); }

/* Controls are bare marks on the surface. Nothing sits in a tile. */
.vx__act {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--ink-4);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: color .18s ease;
}

.vx__act:hover,
.vx__act:focus-visible { color: var(--ink-2); }

.vx__act[aria-pressed="true"] { color: var(--ink-3); }

.vx__act svg { display: block; }

.vx__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.vx__bars i {
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
  transition: height .18s ease;
}

.vx__act[aria-pressed="true"] .vx__bars i:nth-child(1) { height: 6px; }
.vx__act[aria-pressed="true"] .vx__bars i:nth-child(2) { height: 11px; }
.vx__act[aria-pressed="true"] .vx__bars i:nth-child(3) { height: 7px; }

.vx.is-speak .vx__act[aria-pressed="true"] .vx__bars i { animation: vxBars .9s ease-in-out infinite; }
.vx.is-speak .vx__act[aria-pressed="true"] .vx__bars i:nth-child(2) { animation-delay: .12s; }
.vx.is-speak .vx__act[aria-pressed="true"] .vx__bars i:nth-child(3) { animation-delay: .24s; }

@keyframes vxBars {
  0%, 100% { height: 4px; }
  50% { height: 11px; }
}

.vx__x {
  padding: 8px;
  margin-right: -8px;
}

/* ── the thread ────────────────────────────────────────────────────────────── */

.vx__scroll {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 5vh, 56px) var(--vx-gut) 40px;
}

.vx__thread {
  width: 100%;
  max-width: var(--vx-measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vh, 30px);
}

/* A turn is visible the moment it exists. The animation only eases a settle
   from a visible state, so if it never runs — backgrounded tab, no engine,
   reduced motion — the words are already exactly where they belong. */
.vx__turn {
  animation: vxSettle .5s cubic-bezier(.22, .61, .36, 1) backwards;
}

@keyframes vxSettle {
  from { transform: translateY(7px); }
  to { transform: translateY(0); }
}

/* hers */
.vx__said {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0 12px;
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.42;
  letter-spacing: -.012em;
  color: var(--ink);
}

.vx__mark {
  width: 11px;
  height: 11px;
  margin-top: .52em;
  fill: var(--wait);
}

.vx__said b { color: var(--wait); }

/* a run of her beats: only the first carries the mark, and the rest keep its
   column so every line of one thought starts on the same edge */
.vx__said--cont .vx__mark { visibility: hidden; }

/* yours */
.vx__turn--mine {
  padding-left: 30px;
  font-size: clamp(14px, 1vw, 16px);
  color: var(--ink-4);
}

.vx__turn--mine > span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
}

/* ── her read: the evidence panel ──────────────────────────────────────────── */

.vx__read {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
}

.vx__readhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ink-4);
}

.vx__readhead b { color: var(--ink-2); }

/* One place per line, the way a register is read. Laid out in columns it broke
   twice: a short final row left the rule colour showing as a slab where no cell
   covered it, and labels of different lengths pushed neighbouring figures out of
   step. A single column cannot do either, and every label starts on one edge. */
.vx__rows {
  display: flex;
  flex-direction: column;
}

.vx__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 18px;
}

.vx__row + .vx__row {
  border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

/* Figures share a column and sit flush right, so magnitudes line up against
   each other instead of drifting with the width of each number. The column is
   measured in ch, not px: a fixed pixel width fits at one font size and lets the
   longest value ("40 to 845") push its own label out of step at another, and one
   row starting further right than its neighbours is the whole tell. Ten mono
   characters is wider than any figure she reports, at every size. */
.vx__n {
  flex: 0 0 auto;
  min-width: 10ch;
  text-align: right;
  font-family: var(--mono);
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}

.vx__row--flag .vx__n { color: var(--hot); }

.vx__l {
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink-4);
}

/* ── her brief ─────────────────────────────────────────────────────────────── */

.vx__brief {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vx__bh {
  font-size: 15px;
  color: var(--ink-4);
  padding-bottom: 16px;
}

.vx__find {
  position: relative;
  padding: 20px 0 22px 26px;
  border-top: 1px solid var(--rule);
}

/* the bespoke edge: a marker that cuts in, runs, and kicks back out */
.vx__find::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 24px;
  width: 3px;
  background: var(--rule);
  clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 calc(100% - 10px));
}

.vx__find--first::before { background: var(--wait); }

.vx__rank {
  font-size: 13px;
  color: var(--ink-4);
}

.vx__find--first .vx__rank { color: var(--wait); }

.vx__ft {
  padding-top: 7px;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--ink);
}

.vx__fb {
  padding-top: 8px;
  font-size: 14.5px;
  color: var(--ink-4);
}

.vx__note {
  padding-top: 12px;
  font-size: 13px;
  color: var(--ink-4);
}

.vx__note b { color: var(--ink-3); }

.vx__wall {
  margin-top: 8px;
  padding: 18px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-4);
}

.vx__wall .vx__bh { padding-bottom: 8px; }

/* ── real controls: her options, and the doors ─────────────────────────────── */

.vx__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 30px;
}

.vx__opt,
.vx__file,
.vx__door {
  font: inherit;
  cursor: pointer;
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--edge);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.vx__opt {
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 14px;
}

.vx__opt:hover,
.vx__opt:focus-visible {
  border-color: var(--wait);
  color: var(--ink);
}

.vx__file {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}

.vx__file:hover,
.vx__file:focus-visible {
  border-color: var(--wait);
  color: var(--ink);
}

.vx__doors {
  display: grid;
  gap: 12px;
}

.vx__door {
  display: block;
  width: 100%;
  padding: 22px;
  border-radius: 14px;
  border-color: var(--rule);
  background: var(--card);
  text-align: left;
  text-decoration: none;
}

.vx__door:hover,
.vx__door:focus-visible { border-color: var(--edge); }

.vx__door--first { border-color: color-mix(in srgb, var(--wait) 38%, var(--rule)); }

.vx__door--first:hover,
.vx__door--first:focus-visible { border-color: var(--wait); }

.vx__dt {
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--ink);
}

.vx__db {
  padding-top: 9px;
  font-size: 14px;
  color: var(--ink-4);
  max-width: 54ch;
}

.vx__db p + p { padding-top: 9px; }

.vx__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 15px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.vx__door:hover .vx__go,
.vx__door:focus-visible .vx__go { color: var(--ink); }

/* the arrow travels, the card never lifts */
.vx__go svg {
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}

.vx__door:hover .vx__go svg,
.vx__door:focus-visible .vx__go svg { transform: translate(3px, -3px); }

/* ── the dock ──────────────────────────────────────────────────────────────── */

.vx__dock {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--rule);
  background: var(--card);
  padding: 0 var(--vx-gut) max(14px, env(safe-area-inset-bottom));
}

.vx__dockin {
  position: relative;
  width: 100%;
  max-width: var(--vx-measure);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 14px;
}

/* The field says where to write without being drawn as a box. Rounded caps,
   and it changes value on focus rather than growing into place. */
.vx__dockin::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--rule);
  transition: background-color .18s ease;
}

.vx__dockin:focus-within::after { background: var(--wait); }

.vx__in {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(16px, 1.2vw, 19px);
  letter-spacing: -.008em;
  padding: 0;
}

.vx__in::placeholder { color: var(--ink-5); }
.vx__in:focus { outline: none; }
.vx__in:disabled { color: var(--ink-5); }

.vx__send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-5);
  cursor: pointer;
  transition: color .18s ease;
}

.vx__send:hover:not(:disabled),
.vx__send:focus-visible:not(:disabled) { color: var(--wait); }

.vx__send:disabled { color: var(--ink-6); cursor: default; }

.vx__hint {
  width: 100%;
  max-width: var(--vx-measure);
  margin: 0 auto;
  padding: 10px 0 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-4);
}

/* ── the measured focus ring, one treatment everywhere ─────────────────────── */

.vx :focus-visible {
  outline: 2px solid var(--wait);
  outline-offset: 3px;
  border-radius: 4px;
}

/* the field already answers focus with its own rule */
.vx__in:focus-visible { outline: none; }

/* ── narrow ────────────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .vx { --vx-top: 64px; }

  .vx__name { font-size: .9em; }

  .vx__act--voice span:not(.vx__bars) { display: none; }

  .vx__row { padding: 12px 14px; gap: 12px; }

  .vx__n { font-size: 18px; }
}

@media (max-width: 420px) {
  .vx__opts { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vx__turn { animation: none; }
  .vx__go svg { transition: none; }
  .vx.is-speak .vx__act[aria-pressed="true"] .vx__bars i { animation: none; }
}

/* ── her orb, in this room ─────────────────────────────────────────────────────
   The orb itself is the one from the home page and The Mind, unchanged. Only
   its two working states are described here, so the shared file keeps serving
   those pages exactly as it did. */

.vx .vno-halo { inset: -10%; }

.vx.is-speak .vno-core { animation-duration: 1.9s, 6s; }
.vx.is-speak .vno-halo { animation-duration: 1.9s; }

@media (prefers-reduced-motion: reduce) {
  .vx.is-speak .vno-core,
  .vx.is-speak .vno-halo { animation: none; }
}


/* ── the way out ───────────────────────────────────────────────────────────────
   A page does not need a close button, but it does need somewhere to go. The
   wordmark is that, and it carries the only piece of site identity in the room. */

.vx__leave {
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .vx__leave { font-size: 11.5px; }
}

/* ── no script, no conversation ────────────────────────────────────────────────
   Reading a live storefront is not something a static page can fake, so it says
   so plainly and hands over to the written application rather than leaving
   someone in a room where nothing answers. It sits over the thread rather than
   in the grid, so it cannot squeeze her opening off the screen. */

.vx__noscript {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  z-index: 4;
  padding: 0 var(--vx-gut);
  text-align: center;
  font-size: 15px;
  color: var(--ink-4);
}

.vx__noscript p + p { padding-top: 10px; }

.vx__noscript a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--edge);
  padding-bottom: 2px;
}

.vx__noscript a:hover { color: var(--ink); border-bottom-color: var(--wait); }

/* ---- the line that has to be here --------------------------------------
   The page asks for a store address and an email before it asks for
   anything else, so the policy governing them is on the page itself rather
   than a page away. A fourth row under the dock: quiet, always there, and
   it never competes with the field above it.
   ------------------------------------------------------------------------ */

.vx__legal {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 0 var(--vx-gut) clamp(14px, 2vh, 22px);
  font-size: 12px;
  line-height: 1.5;
}

.vx__legal p {
  margin: 0;
}

.vx__legal-c {
  color: var(--ink-6);
}

.vx__legal-l {
  display: flex;
  gap: 18px;
}

.vx__legal-l a {
  color: var(--ink-5);
  text-decoration: none;
  transition: color .2s ease;
}

.vx__legal-l a:focus-visible {
  color: var(--ink-2);
}

@media (hover: hover) {
  .vx__legal-l a:hover {
    color: var(--ink-2);
  }
}

/* Headings break into lines of even length rather than wherever the line
   runs out, so a narrow screen never strands one word on a line of its own;
   running text avoids a lone last word the same way. */
h1,
h2,
h3 {
  text-wrap: balance
}

p,
li {
  text-wrap: pretty
}
