:root {
  --ink: #2a3340;
  --muted: #5c6674;
  --brand: #1e2a33;
  --peach: #f0b89a;
  --apricot: #f7d4c0;
  --seafoam: #9ec9bc;
  --foam: #d5ebe4;
  --sand: #e8d5c4;
  --dusk: #6a8f9e;
  --accent: #3d7a72;
  --accent-deep: #2f5f59;
  --glow: rgba(255, 248, 240, 0.55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  background: #c4a890;
}

/* Full-bleed Pixar-style CGI set — soft morning room */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #c4a890;
}

.sky-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 1;
  animation: sky-drift 32s ease-in-out infinite alternate;
}

.sky-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 48% at 50% 38%, rgba(255, 250, 245, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(255, 240, 230, 0.18) 0%, transparent 28%, rgba(40, 50, 60, 0.18) 100%);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.35rem, 3.5vh, 2.4rem);
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem 2rem;
}

.hero {
  text-align: center;
  max-width: 38rem;
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 0.7rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.85rem, 8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--brand);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: brand-breathe 7s ease-in-out infinite;
}

.headline {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  color: color-mix(in srgb, var(--ink) 88%, var(--dusk));
  letter-spacing: -0.01em;
}

.lede {
  margin: 0.85rem auto 0;
  max-width: 26rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

/* Live talking-Anna badge — round, autoplaying, taps into the app */
.hero-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.orb-ring {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, rgba(255, 244, 236, 0.78), rgba(158, 201, 188, 0.38));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 22px 50px rgba(30, 42, 51, 0.18);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.orb-video {
  width: clamp(9.5rem, 33vw, 13.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
  background: linear-gradient(160deg, var(--apricot), var(--foam));
}

/* soft breathing halo so the eye is drawn to it */
.orb-ring::after {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 122, 114, 0.28);
  animation: orb-pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* little "live" dot */
.orb-live {
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #4ac07a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 12px rgba(74, 192, 122, 0.7);
  animation: orb-blink 2.6s ease-in-out infinite;
}

/* sound toggle — bottom-left of the orb, mirrors the live dot */
.orb-sound {
  position: absolute;
  left: 10%;
  bottom: 10%;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent-deep);
  background: rgba(255, 250, 245, 0.9);
  box-shadow: 0 0 0 1px rgba(42, 51, 64, 0.06), 0 6px 16px rgba(30, 42, 51, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}
.orb-sound:hover { transform: scale(1.08); background: #fff; }
.orb-sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.orb-sound .ico-on { display: none; }
.orb-sound[aria-pressed="true"] { color: #fff; background: var(--accent); }
.orb-sound[aria-pressed="true"] .ico-on { display: block; }
.orb-sound[aria-pressed="true"] .ico-muted { display: none; }

.orb-cta {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-deep);
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.7);
  border: 1px solid rgba(42, 51, 64, 0.08);
  backdrop-filter: blur(8px);
}

.hero-orb:hover .orb-ring,
.hero-orb:focus-visible .orb-ring {
  transform: translateY(-6px) scale(1.02);
  outline: none;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 0.15; }
}
@keyframes orb-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.buddies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 15.5rem));
  gap: clamp(1.1rem, 3.5vw, 2rem);
  width: min(100%, 34rem);
  animation: rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@media (max-width: 640px) {
  .buddies { grid-template-columns: 1fr; max-width: 17rem; }
}

.buddy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.buddy:hover,
.buddy:focus-visible {
  transform: translateY(-8px);
  outline: none;
}

.portrait-ring {
  display: grid;
  place-items: center;
  padding: 0.45rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, rgba(255, 244, 236, 0.75), rgba(158, 201, 188, 0.35));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 22px 48px rgba(30, 42, 51, 0.16);
}

.portrait {
  width: min(100%, 14.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  background: linear-gradient(160deg, var(--apricot), var(--foam));
  animation: float-y 5.2s ease-in-out infinite;
}

.vanga .portrait { animation-delay: -2.4s; }
.vanga .portrait-ring {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5), transparent 55%),
    linear-gradient(145deg, rgba(255, 236, 228, 0.7), rgba(106, 143, 158, 0.28));
}

.buddy-name {
  margin-top: 1.05rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.buddy-line {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 14rem;
  font-weight: 400;
}

.friend .buddy-name { color: #2f6b66; }
.vanga .buddy-name { color: #5a4a5e; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  animation: rise 1.15s ease-out 0.18s both;
}

.foot a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.foot a:hover { border-bottom-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.dot { opacity: 0.4; }

.invite {
  width: min(100%, 22rem);
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 248, 242, 0.55);
  border: 1px solid rgba(42, 51, 64, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(30, 42, 51, 0.08);
  animation: rise 0.75s ease-out both;
}
.invite label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.invite-row { display: flex; gap: 0.45rem; }
.invite input {
  flex: 1;
  border: 1px solid rgba(42, 51, 64, 0.12);
  border-radius: 0.85rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: rgba(255, 252, 248, 0.85);
  color: var(--ink);
}
.invite button {
  border: none;
  border-radius: 0.85rem;
  padding: 0.65rem 1.05rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}
.invite button:hover { background: var(--accent-deep); }
.err { margin: 0.5rem 0 0; color: #8b3d4a; font-size: 0.85rem; }

.signin {
  width: min(100%, 22rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: rise 0.75s ease-out both;
}
.signin-title {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  color: var(--brand);
}
.signin-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}
.oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(42, 51, 64, 0.14);
  transition: transform 0.2s, box-shadow 0.2s;
}
.oauth:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(30, 42, 51, 0.14); }
.oauth-apple { background: #000; color: #fff; border-color: #000; }
.oauth-google { background: #fff; color: #3c4043; }
.signin-note { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.signin-note a { color: var(--accent-deep); }

.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes brand-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}
@keyframes sky-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.05) translate(-0.8%, 0.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand, .portrait, .hero, .buddies, .foot, .invite,
  .sky-art, .hero-orb, .orb-ring::after, .orb-live { animation: none; }
  .buddy:hover { transform: none; }
}
