/* SEENVY coming-soon page. Colours follow brand/README.md. */
/* Bricolage Grotesque (SIL Open Font License), cut down to the two styles the page uses */
@font-face {
  font-family: "Seenvy Display";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/seenvy-display.woff2") format("woff2");
}
@font-face {
  font-family: "Seenvy Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/seenvy-text.woff2") format("woff2");
}

:root {
  --coal: #1c1c1e;
  --soot: #141416;
  --seam: #2f2f34;
  --bone: #ececee;
  --ash: #a3a3ab;
  --gold-light: #f0cf7a;
  --gold: #d4a64a;
  --gold-deep: #a97a22;
  --ok: #8fd19e;
  --bad: #ff9c8f;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --sans: "Seenvy Text", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: "Seenvy Display", "Avenir Next Condensed", "Arial Narrow", "Seenvy Text", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--coal);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--gold-light); text-underline-offset: 0.18em; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--gold-light);
  color: var(--coal);
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0; color: var(--coal); }

/* ---------- top bar ---------- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 0;
}
.wordmark { display: block; color: var(--bone); line-height: 0; }
.wordmark:hover { color: var(--bone); }
.wordmark svg { display: block; width: 8.25rem; height: auto; }

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--ash);
  font-size: 0.9375rem;
}
.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 166, 74, 0.55); }
  50% { box-shadow: 0 0 0 0.45rem rgba(212, 166, 74, 0); }
}

/* ---------- hero ---------- */
main { flex: 1; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 0 var(--gutter);
  overflow: hidden;
  overflow: clip;
}

.eye-stage {
  position: relative;
  justify-self: center;
  width: min(88vw, 30rem);
  margin: -1.5rem 0 -2.75rem;
  pointer-events: none;
}
.eye-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(closest-side, rgba(212, 166, 74, 0.16), rgba(212, 166, 74, 0) 70%);
}
.eye { position: relative; display: block; width: 100%; height: auto; overflow: visible; }

.eye-lids {
  transform-origin: 256px 256px;
  transition: transform 0.16s cubic-bezier(0.5, 0, 0.3, 1);
}
.eye-ribbon { stroke-dasharray: 1; stroke-dashoffset: 0; }
.eye-pupil { transition: opacity 0.12s linear; }
.eye-iris, .eye-glint { transform-origin: 256px 256px; }

.eye.is-shut .eye-lids { transform: scaleY(0.07); }
.eye.is-shut .eye-pupil { opacity: 0; }

.hero-copy { position: relative; z-index: 1; max-width: 40rem; padding-bottom: 3.5rem; }

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.9rem, 12.4vw, 7rem);
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.004em;
}

.lede {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  color: #cfcfd4;
  font-size: clamp(1.125rem, 1.1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- sign-up ---------- */
.notify { max-width: 34rem; }
.notify label {
  display: block;
  margin-bottom: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
}
.notify-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.notify input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  border: 1px solid #55555c;
  border-radius: 0.75rem;
  background: var(--soot);
  color: var(--bone);
  font: inherit;
}
.notify input[type="email"]::placeholder { color: #85858d; }
.notify input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(240, 207, 122, 0.25);
}
.notify button {
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #c19336);
  color: #191509;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.notify button:hover { filter: brightness(1.08); }
.notify button:active { transform: translateY(1px); }
.notify button[disabled] { opacity: 0.6; cursor: progress; }

.hp { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }

.notify-msg { min-height: 1.5em; margin: 0.75rem 0 0; font-weight: 600; }
.notify-msg:empty { min-height: 0; margin: 0; }
.notify-msg.is-ok { color: var(--ok); }
.notify-msg.is-bad { color: var(--bad); }
.notify-note { margin: 0.75rem 0 0; color: var(--ash); font-size: 0.9375rem; }

.notify.is-done .notify-row,
.notify.is-done label,
.notify.is-done .notify-note { display: none; }
.notify.is-done .notify-msg { margin: 0; font-size: 1.1875rem; }

/* ---------- what it will do ---------- */
.plan {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  background: var(--soot);
  border-top: 1px solid var(--seam);
}
.plan h2 {
  margin: 0 0 2.5rem;
  max-width: 22ch;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 2px solid var(--gold);
}
.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
}
.steps h3::before {
  content: counter(step) ". ";
  color: var(--gold-light);
}
.steps p { margin: 0; max-width: 32ch; color: #cfcfd4; }
.for { margin: 2.75rem 0 0; max-width: 46rem; color: var(--ash); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.75rem var(--gutter) 2rem;
  background: var(--soot);
  border-top: 1px solid var(--seam);
  color: var(--ash);
  font-size: 0.9375rem;
}
.foot p { margin: 0; }
.foot-line { color: var(--bone); font-weight: 600; }
.foot-meta a { margin-left: 1rem; }

/* ---------- privacy page ---------- */
.doc { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); max-width: calc(44rem + var(--gutter) * 2); }
.doc h1 { font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); line-height: 0.95; }
.doc h2 { margin: 2.25rem 0 0.5rem; font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.doc p, .doc li { color: #d6d6da; }
.doc ul { padding-left: 1.2rem; }
.doc .updated { color: var(--ash); }

/* ---------- small phones: one line per button ---------- */
@media (min-width: 34rem) {
  .notify-row { flex-direction: row; }
  .notify input[type="email"] { flex: 1; }
}

@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ---------- wide screens: copy left, eye bleeding off the right edge ---------- */
@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    min-height: calc(100svh - 5rem);
    padding-bottom: 2rem;
  }
  .hero-copy { grid-column: 1; grid-row: 1; padding-bottom: 0; }
  .eye-stage {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: min(54vw, 58rem);
    margin: 0 0 0 -7vw;
  }
  h1 { font-size: clamp(4rem, 6.3vw, 8rem); white-space: nowrap; }
}

/* ---------- opening sequence, played once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .eye-ribbon {
    stroke-dashoffset: 1;
    animation: draw 1.15s cubic-bezier(0.65, 0, 0.2, 1) 0.15s forwards;
  }
  .eye-iris, .eye-glint {
    transform: scale(0);
    animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.05s forwards;
  }
  .hero h1, .hero .lede, .hero .notify {
    opacity: 0;
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .hero h1 { animation-delay: 0.55s; }
  .hero .lede { animation-delay: 0.8s; }
  .hero .notify { animation-delay: 0.95s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .eye-lids, .eye-pupil, .notify button { transition: none; }
}
