/* ─────────────────────────────────────────────────────────────
   secure.xovv.io — Secure Credential Exchange

   Tokens, atmosphere (noise + ambient glow), nav and footer are
   carried over from the production xovv.io stylesheet unchanged so
   the two properties read as one system. Everything else extends
   that system rather than introducing a second one.
   ───────────────────────────────────────────────────────────── */

:root {
  --black:     #0C0C0E;
  --ink:       #111116;
  --surface:   #16161C;
  --graphite:  #2C2C32;
  --steel:     #6E6E78;
  --silver:    #A0A0AB;
  --mist:      #D4D4DB;
  --cloud:     #EDEDF0;
  --white:     #F2F2F7;
  --blue:      #2563EB;
  --blue-soft: #3B82F6;
  --blue-glow: rgba(37,99,235,0.08);
  --blue-glow2:rgba(37,99,235,0.03);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* functions/index.js toggles [hidden] when it rewrites the page; make sure a
   display rule can never beat it. */
[hidden] { display: none !important; }

html {
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ─── AMBIENT GLOW ─── */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── LAYOUT ─── */
.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

/* ─── FOCUS ─── */
a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── NAV ─── */
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  animation: fadeIn 0.8s ease both;
}

.nav-wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-wordmark .x { color: var(--blue); }
.nav-wordmark:hover { color: var(--cloud); }

/* Non-interactive twin of the main site's .nav-cta — same frame, no hover,
   no destination. It labels where you are; it is not a way out. */
.nav-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver);
  padding: 10px 20px;
  border: 1px solid var(--graphite);
  border-radius: 8px;
  white-space: nowrap;
}

/* ─── MAIN ─── */
.main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Modest fixed padding — on tall viewports the centring above supplies
     the air, and on short ones this keeps the button above the fold. */
  padding: 40px 0 56px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 24px;
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

.display {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 560px;
  text-wrap: balance;
  margin-bottom: 20px;
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.2s both;
}

.lede {
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.85;
  color: var(--mist);
  max-width: 600px;
  margin-bottom: 40px;
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.25s both;
}

/* ─── HOW IT WORKS ─── */
.steps {
  list-style: none;
  counter-reset: step;
  width: 100%;
  /* Wide enough that each step holds one line on a desktop column. */
  max-width: 560px;
  text-align: left;
  margin-bottom: 44px;
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: baseline;
  font-size: clamp(13px, 3.2vw, 14px);
  line-height: 1.8;
  color: var(--mist);
}
.steps li + li { margin-top: 14px; }

/* --silver, not --steel: the numerals are how a client follows the
   sequence, and --steel lands at 3.88:1 on --black. Still the quietest
   thing in the block, but above the 4.5:1 floor. */
.steps li::before {
  content: counter(step);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--silver);
}

/* ─── PRIMARY ACTION ─── */
.action {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* The largest gap on the page, and deeper than the one above it, so the
     button reads as the end of the sequence rather than another item in it. */
  margin-bottom: 56px;
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.35s both;
}

.action-live {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  min-height: 56px;
  padding: 18px 28px;
  background: var(--blue);
  border-radius: 10px;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.action-button:focus-visible { border-radius: 10px; outline-offset: 4px; }
.action-button:active { transform: translateY(0); }

/* Gated so the lifted state cannot stick to a tapped button on a phone. */
@media (hover: hover) {
  .action-button:hover {
    background: #1d5ad8;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.2);
  }
}

/* ─── FALLBACK NOTICE ─── */
/* Quiet and bordered, never an error state — a missing link is normal. */
.notice {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  padding: 26px;
  background: var(--ink);
  border: 1px solid var(--graphite);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--mist);
  text-wrap: pretty;
}

/* The main site's card top-edge glow, unchanged. */
.notice::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.2), transparent);
}

.notice a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--steel);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}
.notice a:hover { text-decoration-color: var(--blue-soft); }

/* ─── TRUST ROW ─── */
/* Always stacked. The column is capped at 656px and these three labels need
   more than that on one line, so a horizontal row could only ever fit by
   shrinking the type to a razor-thin margin that a font fallback would
   break. One presentation at every width instead. */
.trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 12px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 28px;
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}

/* ─── TRANSPARENCY ─── */
.transparency {
  max-width: 520px;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: var(--silver);
  animation: riseIn 1s cubic-bezier(0.16,1,0.3,1) 0.45s both;
}

/* ─── FOOTER ─── */
.footer {
  width: 100%;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 1s ease 0.5s both;
}

.footer-left, .footer-right {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-right a {
  color: var(--steel);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-right a:hover { color: var(--mist); }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .page { padding: 0 20px; }
  .nav { padding: 28px 0; }
  .nav-label { font-size: 10px; letter-spacing: 1px; padding: 8px 12px; }
  .main { padding: 24px 0 36px; }

  /* Steps wrap to two lines each at this width, so the rhythm is tightened
     to keep the button above the fold on a 667px phone. */
  .lede { margin-bottom: 32px; }
  .steps { margin-bottom: 36px; }
  .notice { padding: 20px 20px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
