/* ───────────────────────────────────────────────────────────
   Olympus One — pixel-perfect rebuild of
   joinolympus.framer.website (clean, Framer-free CSS).
   Geometry & values measured from the live page.
   ─────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap");

:root {
  --font-sans: "Manrope", -apple-system, system-ui, sans-serif;

  --white:    #ffffff;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-400: #a1a1aa;

  --text:        #ffffff;                    /* heading, bold, footer */
  --text-soft:   #ffffff;                    /* lead (page uses pure white) */
  --placeholder: #f4f4f5;   /* zinc-100 — exact placeholder color on the live site */

  /* light studio gradient + radial glow (exact stops) */
  --grad-base: linear-gradient(180deg, #f4f4f5 0%, #e4e4e7 100%);
  --grad-glow: radial-gradient(39% 76.44% at 50% 0,
                 rgba(255, 255, 255, 0.5) 0%,
                 rgba(197, 197, 212, 0.75) 100%);

  --inset: 40px;         /* logo / footer / content left inset */
  --col:   440px;        /* content column width */
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--grad-glow), var(--grad-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Page shell ──────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Full-bleed hero video, melting into the light studio bg */
.hero-figure {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* ── Logo (absolute, top-left @ 40px) ────────────────────── */
.topbar {
  position: absolute;
  top: var(--inset);
  left: var(--inset);
  z-index: 2;
}
.logo { display: inline-flex; }
.logo__img {
  width: 144px;
  height: auto;
  display: block;
}

/* ── Hero content (left-pinned, vertically centered) ─────── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-left: var(--inset);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;                 /* copy-text → field */
  width: var(--col);
  max-width: calc(100vw - var(--inset) * 2);
}

.copy-text {
  display: flex;
  flex-direction: column;
  gap: 16px;                 /* h1 → lead → bold */
}

h1 {
  margin: 0;
  font-size: 48px;
  line-height: 56px;
  font-weight: 500;
  letter-spacing: -2.3px;
  color: var(--text);
}

.lead {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-soft);
}

.emphasis {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--text);
}

/* ── Email field (pill with inline button) ───────────────── */
.field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 120px;
  background: rgba(255, 255, 255, 0.15);
}
.field__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--white);
  font: 400 14px/24px var(--font-sans);
}
.field__input::placeholder { color: var(--placeholder); }
.field__input:focus { outline: none; }

.btn {
  flex: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 100px;
  background: var(--zinc-200);
  color: var(--zinc-400);
  font: 700 14px/24px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease;
}
.btn:hover { background: #d4d4d8; }

/* Spinner + checkmark sit centered, cross-fade with the label */
.btn__label { transition: opacity 0.2s ease; }

.btn__spinner,
.btn__check {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn__spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(113, 113, 122, 0.3);
  border-top-color: var(--zinc-500);
  border-radius: 50%;
}
.btn__check { width: 24px; height: 24px; }

/* Loading: collapse the pill into a circle and spin */
.btn.is-loading,
.btn.is-done {
  width: 48px;
  padding: 0;
  cursor: default;
}
.btn.is-loading .btn__label,
.btn.is-done .btn__label { opacity: 0; }

.btn.is-loading .btn__spinner {
  opacity: 1;
  animation: btn-spin 0.7s linear infinite;
}

/* Success: circle turns green, checkmark draws in */
.btn.is-done { background: #47824f; }
.btn.is-done:hover { background: #47824f; }
.btn.is-done .btn__check { opacity: 1; }
.btn.is-done .btn__check path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: btn-check 0.4s ease 0.1s forwards;
}

@keyframes btn-spin { to { transform: rotate(360deg); } }
@keyframes btn-check { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__spinner,
  .btn__check { transition: none; animation: none; }
}

/* ── Footer (absolute, bottom-left @ 40px) ───────────────── */
.footer {
  position: absolute;
  bottom: var(--inset);
  left: var(--inset);
  z-index: 2;
}
.footer p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}

/* ── Small screens ───────────────────────────────────────── */
@media (max-width: 600px) {
  :root { --inset: 24px; }
  h1 { font-size: 36px; line-height: 42px; letter-spacing: -1.6px; }
  .hero__copy { width: 100%; }
}
