/* NYA — insidenya.com pre-launch page.
   Built on the NYA design system and the Pre-launch campaign: obsidian,
   linen, stone and moon, Inter Light display, Inter Regular labels in tracked
   capitals. Self-contained: nothing here depends on any other site. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core four */
  --obsidian: #141413;
  --linen: #EFE9DF;
  --stone: #8C857A;
  --moon: #F2E6BF;
  /* Warm neutrals */
  --paper: #fbf9f4;
  --panel-dark: #1d1c1a;
  /* Text */
  --text-1: #141413;
  --text-2: #4f4c46;
  --text-3: #6e6a62;
  --text-2-dark: #bdb8ae;
  --hairline: #14141314;
  --hairline-strong: #14141333;
  --hairline-dark: #efe9df26;
  --hairline-dark-strong: #efe9df40;
  --error: #8a2b1d;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-m: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --gutter: clamp(20px, 5vw, 72px);
  --bar-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--text-1);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: normal; }

::selection { background: var(--moon); color: var(--obsidian); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1328px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--obsidian);
  color: var(--linen);
  border-radius: var(--radius-m);
  font-size: 15px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────────────────── */

.display {
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

/* Labels: Inter Regular, uppercase, tracked wide. */
.label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.accent { color: var(--text-3); }

/* ── The lockup: mark, NYA, a hairline, BY ▾ VELORA ───────────────────── */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--obsidian);
}
.mark { width: 32px; height: 32px; flex: none; }
.wordmark {
  font-weight: 300;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em; /* the tracking trails the last letter */
}
.lockup-divider {
  width: 1px;
  height: 18px;
  margin-left: 8px;
  background: #1414134d;
  flex: none;
}
.endorse {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  white-space: nowrap;
}
.velora-v { width: 11px; height: 10px; flex: none; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--obsidian);
  border-radius: var(--radius-m);
  background: var(--obsidian);
  color: var(--linen);
  font: 400 16px/1 var(--sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #2a2a28; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--obsidian); }
.btn-ghost:hover { background: var(--obsidian); color: var(--linen); }
.btn[disabled] { cursor: progress; opacity: 0.75; }

/* ── Header ───────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: var(--gutter);
  background: var(--linen);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.bar.is-scrolled { border-bottom-color: var(--hairline-strong); }

.bar-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.bar-ig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  font-size: 12px;
  text-decoration: none;
}

/* The Instagram glyph, as supplied, in the colour of the text beside it. */
.ig { width: 1.25em; height: 1.25em; flex: none; }
.bar-ig .ig { width: 18px; height: 18px; }
.btn .ig { width: 18px; height: 18px; }
.ig-link { display: inline-flex; align-items: center; gap: 0.6em; }
.ig-link .ig { width: 1.2em; height: 1.2em; }
.bar-ig:hover { color: var(--text-2); }

/* The header's button only appears once the hero form has scrolled away,
   so the top of the page reads as the design does: lockup and Instagram. */
[data-bar-cta] { animation: cta-in 0.3s var(--ease); }
.bar.form-in-view [data-bar-cta],
.bar.has-joined [data-bar-cta] { display: none; }
@keyframes cta-in { from { opacity: 0; transform: translateY(-4px); } }

/* ── 1 · Hero and waitlist ────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip; /* not a scroll container, so nothing can scroll it sideways */
  min-height: calc(100svh - var(--bar-h));
  display: grid;
  align-items: center;
  padding-block: clamp(56px, 9vh, 112px) clamp(72px, 11vh, 128px);
  outline: none;
}

.hero-watermark {
  position: absolute;
  right: -16vw;
  top: 2vw;
  width: max(60vw, 540px);
  height: auto;
  color: var(--obsidian);
  opacity: 0.06;
  pointer-events: none;
}

.hero-inner { position: relative; display: grid; gap: clamp(24px, 3.2vw, 40px); }

.hero-kicker { color: var(--text-2); font-size: 13px; letter-spacing: 0.25em; }

.hero-title {
  font-size: clamp(54px, 10vw, 148px);
  line-height: 0.93;
  max-width: 11ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .line > span { display: inline-block; }

.hero-sub {
  max-width: 34ch;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.6;
  color: var(--text-2);
}

.signup { max-width: 620px; }

.form { display: grid; gap: 12px; }
.form[hidden] { display: none; }

.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 1 1 280px; display: grid; gap: 8px; }
.field-label { color: var(--text-2); }

.input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--obsidian);
  font: 300 17px/1.2 var(--sans);   /* 16px or more, so iOS never zooms */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #14141366; }
.input:focus { outline: none; border-color: var(--obsidian); box-shadow: 0 0 0 3px #14141322; }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px #8a2b1d22; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.status { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.status:empty { display: none; }
.status.is-error { color: var(--error); }

.fine { font-size: 14px; color: var(--text-2); }
.fine a { color: var(--obsidian); text-underline-offset: 3px; }

.spinner {
  width: 16px; height: 16px;
  border: 1.5px solid #efe9df55;
  border-top-color: var(--linen);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.done { display: grid; gap: 12px; padding: 4px 0; outline: none; }
.done[hidden] { display: none; }
.done-title { font-size: clamp(32px, 3.6vw, 48px); outline: none; }
.done-copy { max-width: 40ch; font-size: 18px; color: var(--text-2); }

/* Step 2: the two questions */
.details { gap: 24px; }
.step-head { display: grid; gap: 8px; }
.step-head .label { color: var(--text-2); }
.step-title { font-size: clamp(30px, 3.4vw, 44px); outline: none; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--obsidian); }
.chips input:checked + .chip { background: var(--obsidian); border-color: var(--obsidian); color: var(--linen); }
.chips input:focus-visible + .chip { outline: 2px solid var(--obsidian); outline-offset: 3px; }

.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.btn-text-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: 400 15px var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.btn-text-link:hover { color: var(--obsidian); }

/* Step 3: share to move up */
.share {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-strong);
}
.share-title { color: var(--obsidian); }
.share-copy { max-width: 42ch; font-size: 16px; color: var(--text-2); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.share-link { flex: 1 1 260px; font-size: 15px; color: var(--text-2); }

.hero-ig { display: flex; }
.btn-ig { gap: 10px; }

/* ── 2 · Ranked for you ───────────────────────────────────────────────── */

.ranked {
  background: var(--obsidian);
  color: var(--linen);
  padding-block: clamp(88px, 11vw, 140px);
}
.ranked .accent { color: var(--moon); }

.ranked-inner {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 960px) {
  .ranked-inner { grid-template-columns: 1.1fr 1fr; }
}

.ranked-copy { display: grid; gap: 32px; }
.ranked-copy > .label { color: var(--text-2-dark); font-size: 13px; letter-spacing: 0.25em; }
.ranked-title { font-size: clamp(40px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.03em; max-width: 13ch; }

.principles { border-top: 1px solid var(--hairline-dark); }
.principles li {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 18px;
  line-height: 1.5;
}
.principles .label { color: var(--text-2-dark); padding-top: 4px; letter-spacing: 0.22em; }

.tonight {
  background: var(--panel-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 32px);
}
.tonight-title { display: block; color: var(--text-2-dark); font-size: 11px; letter-spacing: 0.25em; padding-bottom: 16px; }
.tonight-list li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline-dark);
}
.tonight-n { color: var(--text-2-dark); padding-top: 3px; letter-spacing: 0.12em; }
.tonight-body { flex: 1; display: grid; gap: 12px; }
.tonight-why { font-size: 16px; line-height: 1.5; color: var(--text-2-dark); }

/* Names are held back until launch: a solid bar where the name will be. */
.redacted {
  display: block;
  width: var(--w, 50%);
  height: 20px;
  background: var(--linen);
  transform-origin: left center;
}
.js .tonight.rv .redacted { transform: scaleX(0); transition: transform 0.9s var(--ease); }
.js .tonight.rv.is-in .redacted { transform: none; }
.js .tonight.rv.is-in li:nth-child(2) .redacted { transition-delay: 0.12s; }
.js .tonight.rv.is-in li:nth-child(3) .redacted { transition-delay: 0.24s; }

/* ── 3 · Not more options ─────────────────────────────────────────────── */

.options { padding-block: clamp(96px, 13vw, 176px); }
.options-inner { display: grid; gap: clamp(40px, 5vw, 64px); }

.struck { display: grid; gap: 14px; }
.struck li {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.2;
  color: var(--stone);
}
/* The strike is drawn as a line so it can cross the text in as it arrives. */
.struck s {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 55% / 100% 2px no-repeat;
}
.js .struck .rv s { background-size: 0 2px; transition: background-size 0.8s var(--ease) 0.25s; }
.js .struck .rv.is-in s { background-size: 100% 2px; }

.options-title { font-size: clamp(46px, 8.6vw, 140px); line-height: 0.95; max-width: 13ch; }

/* ── 4 · Two tastes ───────────────────────────────────────────────────── */

.overlap {
  background: var(--moon);
  padding-block: clamp(88px, 11vw, 150px);
}
.overlap .accent { color: var(--stone); }
.overlap-inner { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .overlap-inner { grid-template-columns: 1fr 1.15fr; }
}

.overlap-copy { display: grid; gap: 24px; }
.overlap-copy > .label { color: var(--text-2); font-size: 13px; letter-spacing: 0.25em; }
.overlap-title { font-size: clamp(46px, 7vw, 120px); line-height: 0.95; }
.overlap-sub { max-width: 30ch; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--text-2); }

.overlap-art { width: 100%; height: auto; overflow: visible; }
.overlap-ring { fill: none; stroke: var(--stone); stroke-width: 3; }
.overlap-lens { fill: var(--obsidian); }
.overlap-label { font: 400 24px var(--sans); letter-spacing: 6px; fill: var(--text-2); }
.overlap-here { font-size: 22px; letter-spacing: 5px; fill: var(--linen); }

/* ── 5 · Closing ──────────────────────────────────────────────────────── */

.closing { padding-block: clamp(96px, 12vw, 160px); }
.closing-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.closing-copy { flex: 1 1 520px; display: grid; gap: 20px; }
.closing-copy > .label { color: var(--text-2); font-size: 13px; letter-spacing: 0.25em; }
.closing-title { font-size: clamp(40px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.03em; max-width: 14ch; }
.closing-sub { max-width: 36ch; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; color: var(--text-2); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--hairline-strong);
  padding-block: 32px calc(32px + env(safe-area-inset-bottom));
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; color: var(--text-2); font-size: 11px; letter-spacing: 0.25em; }
.foot-links li { display: flex; align-items: center; min-height: 44px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--obsidian); text-decoration: underline; text-underline-offset: 4px; }

/* ── Small screens ────────────────────────────────────────────────────── */

@media (max-width: 599px) {
  :root { --bar-h: 60px; }
  .bar-ig { justify-content: center; }
  .bar-ig-text { display: none; }
  .bar-ig .ig { width: 20px; height: 20px; }
  .bar:not(.form-in-view):not(.has-joined) .bar-ig { display: none; }
  .lockup { gap: 8px; }
  .mark { width: 26px; height: 26px; }
  .wordmark { font-size: 15px; }
  .lockup-divider { height: 16px; margin-left: 2px; }
  .endorse { font-size: 9px; letter-spacing: 0.24em; }
  .bar .btn-sm { padding: 0 12px; font-size: 13px; }

  .hero { align-items: end; }
  .hero-watermark { top: 4vw; right: -44vw; width: 120vw; }
  .hero-title { font-size: 15vw; }
  .form-row .btn { width: 100%; }
  .share-row .btn { flex: 1 1 auto; }
  .step-actions .btn { flex: 1 1 100%; }
  .hero-ig .btn { width: 100%; }

  .closing-actions .btn { flex: 1 1 100%; }
  .foot-links { gap: 0 20px; }
}

@media (max-width: 380px) {
  .endorse { letter-spacing: 0.18em; }
  .bar .btn-sm { padding: 0 10px; font-size: 12.5px; }
}

/* ── Motion ───────────────────────────────────────────────────────────────
   One gesture, used sparingly: content rises a short way into place as it
   enters, and the redaction bars and strikes draw in. Nothing loops. With no
   JS, or with reduced motion, everything is simply there. */

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .rv.is-in { opacity: 1; transform: none; }

.js .hero-title .line.rv { opacity: 1; transform: none; }
.js .hero-title .line.rv > span {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
}
.js .hero-title .line.rv.is-in > span { transform: none; }
.js .hero-title .line.rv:nth-child(2) > span { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv,
  .js .hero-title .line.rv > span,
  .js .tonight.rv .redacted {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js .struck .rv s { background-size: 100% 2px !important; transition: none !important; }
  .spinner { animation-duration: 2.4s; }
}
