/* ORVIEOU waiting list. Brand tokens from orvieou-studio/packages/ui/tokens.css */

/* Oskari G2 Medium is used for the H1 only; everything else is Helvetica Neue. */
@font-face { font-family: "Oskari G2"; src: url("/assets/fonts/OskariG2-Medium.otf") format("opentype"); font-weight: 100 900; font-display: swap; }

:root {
  /* ORVIEOU palette (orvieou-studio/packages/ui/tokens.css) */
  --o-sky: #5ed1e8;
  --o-lagoon: #54b4c4;
  --o-cerulean: #4ba3c2;
  --o-steel: #448aa8;
  --o-dusk: #407693;
  --o-deep: #0e344a;
  --ink: var(--o-deep);
  --display: "Oskari G2", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --edge: clamp(16px, 3vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; background: var(--o-dusk); }
body { position: relative; margin: 0; min-height: 100vh; min-height: 100svh; font-family: var(--sans); font-weight: 400; color: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
p, h1 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid #fff; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255,255,255,.35); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Labels: Helvetica Neue */
.label { font-family: var(--sans); font-weight: 500; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- Background ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, var(--o-dusk) 0%, var(--o-steel) 32%, var(--o-cerulean) 52%, var(--o-lagoon) 70%, #a9e6f3 100%); }
.sky__stars { position: absolute; inset: 0 0 45% 0; opacity: .55; background-image:
  radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent),
  radial-gradient(1px 1px at 44% 26%, rgba(255,255,255,.8), transparent), radial-gradient(1.5px 1.5px at 63% 12%, #fff, transparent),
  radial-gradient(1px 1px at 78% 30%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 88% 9%, #fff, transparent),
  radial-gradient(1px 1px at 6% 38%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 93% 40%, rgba(255,255,255,.6), transparent);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .25; } }
/* the planet: a huge circle whose top edge forms the horizon */
.planet { position: absolute; left: 50%; top: 54vh; width: max(260vw, 2400px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--o-cerulean) 0%, var(--o-lagoon) 80%, var(--o-sky) 93%, #e9fbff 100%);
  box-shadow: 0 0 60px 10px rgba(235, 252, 255, .9), 0 0 180px 60px rgba(160, 232, 248, .75), 0 0 420px 160px rgba(94, 209, 232, .45);
  }
/* extra glow that fades in and out (opacity only, so the browser doesn't repaint the shadows each frame) */
.planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 90px 24px rgba(235, 252, 255, .55), 0 0 260px 100px rgba(160, 232, 248, .35); opacity: 0; animation: breathe 8s ease-in-out infinite alternate; will-change: opacity; }
.planet__rim { position: absolute; inset: -2px; border-radius: 50%; box-shadow: inset 0 18px 40px rgba(255, 255, 255, .85), inset 0 80px 160px rgba(200, 245, 255, .45); }
@keyframes breathe { to { opacity: 1; } }
.sky__haze { position: absolute; left: 0; right: 0; top: 30vh; height: 40vh; background: radial-gradient(60% 50% at 50% 70%, rgba(200, 245, 255, .35), transparent 70%); filter: blur(20px); }
.sky__grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 1px solid rgba(255,255,255,.7); pointer-events: none; opacity: 0; transform: translate3d(-100px, -100px, 0); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, opacity .3s, box-shadow .35s; box-shadow: 0 2px 12px rgba(14,52,74,.25); will-change: transform; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: none; }
.cursor.is-text { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 3px; }
.cursor.is-down { width: 10px; height: 10px; margin: -5px 0 0 -5px; }

/* ---------- Top bar ---------- */
.top { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: var(--edge) var(--edge) 0; }
.top__logo { display: inline-flex; align-items: center; }
.top__logo img { height: 18px; width: auto; }
.top__mid { padding-top: 6px; text-shadow: 0 1px 8px rgba(14, 52, 74, .35); }
.top__clock { justify-self: end; display: grid; justify-items: end; gap: 3px; padding-top: 2px; text-shadow: 0 1px 8px rgba(14, 52, 74, .35); }

/* ---------- Stage ---------- */
.stage { z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 24px 16px 0; }
.card { position: relative; z-index: 1; width: min(360px, 100%); height: clamp(420px, calc(100svh - 250px), 512px); flex: none; padding: 18px; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(14, 52, 74, .6) 0%, rgba(64, 118, 147, .35) 42%, rgba(14, 52, 74, .5) 72%, rgba(14, 52, 74, .72) 100%);
  border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 40px 80px rgba(14, 52, 74, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: cardIn 1.4s var(--ease) both .15s; }
.card::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.97); filter: blur(10px); } }
.card__icon { width: 26px; height: auto; }
.card__title { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.card__sub { margin-top: 8px; font-size: 14px; font-weight: 400; color: #fff; }
.card__orb { flex: 1; display: grid; place-items: center; }
.card__orb span { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #d9f6fc 0%, var(--o-sky) 18%, var(--o-cerulean) 42%, var(--o-steel) 62%, var(--o-dusk) 82%, var(--o-deep) 100%); box-shadow: inset -18px -22px 44px rgba(14,52,74,.35), 0 30px 60px rgba(14,52,74,.35); animation: orb 7s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translateY(-12px) scale(1.04); } }
.card__lead { font-size: 14px; font-weight: 400; line-height: 1.45; color: #fff; text-shadow: 0 1px 8px rgba(14, 52, 74, .35); }
.card__foot > * { animation: fadeUp 1s var(--ease) both .7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.wl { position: relative; display: flex; gap: 6px; margin-top: 18px; padding: 4px; border-radius: 9px; background: rgba(14, 52, 74, .6); border: 1px solid rgba(255,255,255,.18); transition: border-color .3s; }
.wl:focus-within { border-color: rgba(255,255,255,.55); }
/* 16px stops iPhone Safari from zooming in when the field is tapped */
.wl input[type="email"] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 8px; font-size: 16px; color: #fff; }
.wl input::placeholder { color: rgba(255,255,255,.72); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl__btn { position: relative; overflow: hidden; flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; transition: transform .3s var(--ease); }
.wl__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(94, 209, 232, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.wl__btn:hover::after { transform: translateX(120%); }
.wl__btn:active { transform: scale(.97); }
.wl__btn[disabled] { opacity: .7; }
.wl.is-error { border-color: #ffd1c9; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.wl__msg { min-height: 0; margin-top: 8px; font-size: 12.5px; color: #ffe2dc; }
.wl__msg:empty { display: none; }
.wl__privacy { margin-top: 18px; font-size: 12px; font-weight: 400; color: rgba(255,255,255,.85); }

.state--done { display: grid; gap: 8px; animation: fadeUp .8s var(--ease) both; }
.done__tick { width: 34px; height: 34px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.3 8.2 2.8' fill='none' stroke='%230e344a' stroke-width='1.3'/%3E%3C/svg%3E") center / 16px no-repeat; margin-bottom: 6px; }
.done__title { font-family: var(--sans); font-weight: 500; font-size: 22px; }

.peek { position: relative; z-index: 1; flex: none; width: min(360px, 100%); height: 96px; margin-top: 18px; padding: 22px 18px 0; border-radius: 14px 14px 0 0; text-align: center; background: linear-gradient(180deg, rgba(14, 52, 74, .7), rgba(14, 52, 74, .3)); border: 1px solid rgba(255,255,255,.22); border-bottom: 0; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: cardIn 1.4s var(--ease) both .35s; }
.peek__dot { position: absolute; left: 50%; bottom: 14px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #bfeefa 45%, var(--o-sky)); box-shadow: 0 0 24px 6px rgba(200, 245, 255, .7); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 34px 12px rgba(200, 245, 255, .9); transform: scale(1.08); } }

/* ---------- Bottom bar ---------- */
/* Footer: Helvetica Neue */
.bottom { position: absolute; left: var(--edge); right: var(--edge); bottom: var(--edge); z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; pointer-events: none; color: #fff; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; text-shadow: 0 1px 10px rgba(14, 52, 74, .45); }
.bottom a { pointer-events: auto; }
.bottom__left, .bottom__right { max-width: calc(50% - 180px - 28px); line-height: 1.5; }
.bottom__right { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.bottom__right a { position: relative; }
.bottom__right a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.bottom__right a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Entrance for top/bottom bars */
.top, .bottom { animation: fadeIn 1.2s var(--ease) both .5s; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-height: 760px) and (min-width: 721px) {
  .card__orb span { width: 90px; height: 90px; }
}
@media (max-width: 720px) {
  .top { grid-template-columns: 1fr auto; }
  .top__mid { display: none; }
  .stage { padding-top: 28px; }
  .card { height: auto; min-height: 460px; }
  .planet { top: 50vh; }
  /* corners can't sit beside the card: show the contact line between the card and the bottom card */
  .bottom { position: static; order: 0; flex-direction: column; align-items: center; gap: 4px; margin-top: 18px; text-align: center; pointer-events: auto; }
  .bottom__left { display: none; }
  .bottom__right { max-width: none; justify-content: center; }
}
@media (max-width: 720px) and (max-height: 700px) {
  /* small phones: shrink the card so the bottom card still lands on the screen edge */
  .stage { padding-top: 18px; }
  .card { min-height: 410px; }
  .card__orb span { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
