/* EMBER AI public website: the "Bold" look from the Ember app (chosen by Mich, 15 Oct 2026).
   Waitlist only. Fonts are hosted here (no Google Fonts), so visitors' details aren't sent anywhere else. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Josefin Sans"; src: url("fonts/josefin-sans-latin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

:root {
  --night: #120d1a;
  --cream: #f8eee4;
  --muted: rgba(248, 238, 228, 0.72);
  --faint: rgba(248, 238, 228, 0.5);
  --peach: #ffb07a;
  --violet: #c9a6ff;
  --grad: linear-gradient(90deg, #ff8a5c, #f05f9a 50%, #9b6bff);
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --logo: "Josefin Sans", "Futura", "Century Gothic", sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--cream); color: #1a1210; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* The night background with soft glows (gradients, not blur filters: light to draw on any laptop). */
.glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glows span { position: absolute; width: 900px; height: 900px; border-radius: 50%; }
.glows .g1 { left: -240px; top: -240px; background: radial-gradient(closest-side, rgba(255, 138, 92, 0.28), transparent); }
.glows .g2 { right: -240px; top: 0; background: radial-gradient(closest-side, rgba(155, 107, 255, 0.26), transparent); }
.glows .g3 { left: -320px; top: 1500px; background: radial-gradient(closest-side, rgba(240, 95, 154, 0.16), transparent); }
.page { position: relative; }
.page > *:not(.glows) { position: relative; z-index: 1; }

.shell { width: min(1120px, 100% - 48px); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--peach); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.wordmark { font-family: var(--logo); font-size: 15px; letter-spacing: 0.5em; text-decoration: none; color: rgba(248, 238, 228, 0.85); }
.wordmark b { font-weight: inherit; color: var(--peach); text-shadow: 0 0 14px rgba(255, 138, 61, 0.8); }
.wordmark small { font-size: 10px; letter-spacing: 0.3em; margin-left: 2px; color: var(--faint); }
.pill-link { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.pill-link:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero { text-align: center; padding: 40px 0 0; }
.hero h1 { margin: 0 auto; max-width: 1100px; font-family: var(--logo); font-weight: 300; font-size: clamp(42px, 7vw, 74px); line-height: 1.04; letter-spacing: -0.01em; }
.hero .lede { margin: 20px auto 0; max-width: 640px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); }

/* The waitlist form */
.waitlist { margin: 30px auto 0; display: flex; gap: 8px; width: min(520px, 100%); padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.waitlist input[type="email"] { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); font: inherit; font-size: 16px; }
.waitlist input[type="email"]::placeholder { color: rgba(248, 238, 228, 0.5); }
.waitlist input[type="email"]:focus { outline: none; }
.waitlist:focus-within { box-shadow: inset 0 0 0 2px rgba(255, 176, 122, 0.8); }
.waitlist button { height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 40px rgba(240, 95, 154, 0.4); white-space: nowrap; }
.waitlist button:hover { filter: brightness(1.08); }
.hidden { display: none; }
.form-note { margin: 14px auto 0; max-width: 560px; font-size: 13.5px; letter-spacing: 0.04em; color: var(--faint); }
.form-note a { color: var(--peach); }
@media (max-width: 520px) {
  .waitlist { flex-direction: column; border-radius: 28px; padding: 8px; }
  .waitlist button { width: 100%; }
}

/* The companions, alive (the same motion as the Ember app). Tap one to say hi. */
.lineup { list-style: none; margin: 34px auto 0; padding: 64px 24px 8px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.lineup li { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.lineup .name { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--faint); }
@media (max-width: 1023px) {
  .lineup { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; }
  .lineup li { scroll-snap-align: center; }
}
.companion { position: relative; width: 124px; height: 124px; border: 0; padding: 0; background: none; cursor: pointer; transition: width 0.3s, height 0.3s; }
.companion.speaking { width: 168px; height: 168px; }
.companion .shadow { position: absolute; left: 27%; bottom: 2%; width: 46%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
.companion .body, .companion .breathe, .companion .boop { position: absolute; inset: 0; display: block; }
.companion .glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 150, 80, 0.28), transparent); }
.companion .tip { position: absolute; left: 35%; top: 3%; width: 30%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 200, 120, 0.85), rgba(255, 140, 60, 0.3) 55%, transparent); }
.companion img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.companion .say { position: absolute; bottom: 92%; left: 50%; translate: -50% 0; width: max-content; max-width: 220px; padding: 8px 14px; border-radius: 18px; background: #fff6ee; color: #3a2418; font-size: 15px; font-weight: 600; line-height: 1.3; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; }
.companion.speaking .say { opacity: 1; }

@keyframes c-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 0.975); } }
@keyframes c-bob { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-4%) rotate(-1.5deg); } 65% { transform: translateY(-2%) rotate(1.2deg); } }
@keyframes c-wave { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-8deg); } 30% { transform: rotate(7deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } 75% { transform: rotate(0); } }
@keyframes c-shadow { 0%, 100% { transform: scale(1); opacity: 0.45; } 30% { transform: scale(0.88); opacity: 0.32; } 65% { transform: scale(0.94); opacity: 0.38; } }
@keyframes c-flicker { 0%, 100% { opacity: 0.75; transform: scale(1, 1); } 20% { opacity: 1; transform: scale(1.08, 1.15); } 45% { opacity: 0.6; transform: scale(0.94, 0.95); } 70% { opacity: 0.95; transform: scale(1.04, 1.1); } }
@keyframes c-boop { 0% { transform: scale(1, 1); } 25% { transform: scale(1.12, 0.86); } 50% { transform: scale(0.94, 1.08) translateY(-6%); } 75% { transform: scale(1.03, 0.97); } 100% { transform: scale(1, 1); } }
@keyframes c-say { from { opacity: 0; transform: translateY(6px) scale(0.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .companion .breathe { animation: c-breathe 3.6s ease-in-out infinite; transform-origin: 50% 95%; }
  .companion .body { animation: c-bob 5.5s ease-in-out infinite; transform-origin: 50% 95%; }
  .companion .shadow { animation: c-shadow 5.5s ease-in-out infinite; }
  .companion.speaking .body { animation: c-wave 1.6s ease-in-out 2; transform-origin: 50% 92%; }
  .companion .tip { animation: c-flicker 1.4s ease-in-out infinite; }
  .companion .boop.on { animation: c-boop 0.55s ease-out; transform-origin: 50% 95%; }
  .companion.speaking .say { animation: c-say 0.35s ease-out both; }
}
.companions-note { margin: 18px auto 0; max-width: 460px; padding: 0 24px; text-align: center; font-size: 14px; color: var(--faint); }

/* Sections */
section { padding: 0; }
.cards { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { padding: 22px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.card .icon { font-size: 24px; }
.card h3 { margin: 8px 0 4px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: rgba(248, 238, 228, 0.65); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 96px 0; }
.story h2 { margin: 0; font-family: var(--logo); font-weight: 300; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.1; }
.story p { color: var(--muted); }
.story .photo { margin-top: 26px; aspect-ratio: 4 / 3; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.story .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 28px; padding: 72px 0; } }

.final { text-align: center; padding: 20px 0 100px; }
.final h2 { margin: 0; font-family: var(--logo); font-weight: 300; font-size: clamp(42px, 6vw, 62px); line-height: 1.08; }
.final .lede { margin: 14px auto 0; max-width: 520px; color: var(--muted); }

footer { border-top: 1px solid var(--line); }
footer .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 0; font-size: 13px; color: var(--faint); }
footer a { color: var(--faint); }

/* Simple pages: thank you and privacy */
.basic { min-height: 100vh; padding: 20px 0 80px; }
.basic .panel { margin: 48px auto 0; max-width: 720px; padding: clamp(24px, 5vw, 48px); border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.basic h1 { margin: 10px 0 12px; font-family: var(--logo); font-weight: 300; font-size: clamp(36px, 6vw, 56px); line-height: 1.08; }
.basic h2 { margin: 28px 0 6px; font-size: 18px; }
.basic p { color: var(--muted); }
.basic a { color: var(--peach); }
.button { display: inline-flex; align-items: center; height: 52px; margin-top: 18px; padding: 0 26px; border-radius: 999px; background: var(--grad); color: #fff !important; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.thanks { text-align: center; }
.thanks .companion { display: block; width: 150px; height: 150px; margin: 44px auto 0; cursor: default; }
