/* AVA's Happy Corner marketing page. Same palette and type as the app (app/globals.css). */

:root {
  color-scheme: dark;
  --bg: #0a0a0d;
  --ink: #f5f0f5;
  --muted: #b7a4c4;
  --pink: #ec3a87;
  --pink-soft: #f7a8cf;
  --violet: #8b2fc9;
  --plum: #2a1838;
  --card: #17101f;
  --line: #2e2238;
  --tile-from: #7a4aa0;
  --tile-to: #271240;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --head: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* The hero's ripple rings grow past the screen edge; clip (not hidden) keeps the sticky top bar working. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px;
  background: var(--pink); color: #fff;
  font: 800 1.0625rem/1 var(--body); text-decoration: none;
  box-shadow: 0 10px 30px -10px rgb(236 58 135 / 0.7);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:hover { background: #f0539a; }
.btn:active { transform: scale(0.97); }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn-quiet:hover { background: var(--plum); }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: 0.95rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgb(10 10 13 / 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(46 34 56 / 0.6);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 700 1.15rem/1 var(--head); }
.brand img { width: 40px; height: 40px; }

/* Shared section spacing */
main > section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 3rem); }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }

/* Hero */
.hero {
  max-width: 1200px; margin: 0 auto;
  display: grid; gap: 3.5rem; align-items: center;
  grid-template-columns: 1fr;
  padding-top: clamp(2.5rem, 6vw, 5rem) !important;
  padding-bottom: 2rem !important;
}
.hero-wordmark { width: min(300px, 80%); margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; max-width: 13em; }
.hero .lede { margin-top: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.fine { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }

.hero-stage { position: relative; display: grid; place-items: center; padding: 2rem 0 0; }
.ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripples span {
  position: absolute; width: 300px; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgb(236 58 135 / 0.55);
  animation: ripple 4.5s var(--ease) infinite;
  opacity: 0;
}
.ripples span:nth-child(2) { animation-delay: 1.5s; }
.ripples span:nth-child(3) { animation-delay: 3s; }
@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-stage::before {
  content: ""; position: absolute; width: 420px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(139 47 201 / 0.45), transparent);
}

.toast {
  position: absolute; z-index: 2;
  top: 0.5rem; left: 50%; translate: -50% 0;
  width: min(330px, 92%);
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.8rem 1rem;
  background: rgb(23 16 31 / 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(236 58 135 / 0.45);
  border-radius: 18px;
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.9);
  animation: drop 700ms var(--ease) 600ms both;
}
.toast > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--pink); color: #fff; }
.toast b { display: block; font-size: 0.95rem; }
.toast span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
@keyframes drop { from { opacity: 0; transform: translateY(-16px) scale(0.96); } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; }
  .toast { left: -1rem; top: 32%; translate: none; }
}

/* Phone mockup (drawn to match the app's own screens) */
.phone {
  position: relative; z-index: 1;
  width: 300px; aspect-ratio: 430 / 932;
  padding: 10px;
  border-radius: 46px;
  background: #1b1622;
  box-shadow: inset 0 0 0 1.5px #3a2e46, 0 40px 80px -30px rgb(139 47 201 / 0.55);
}
.screen {
  height: 100%; overflow: hidden; position: relative;
  border-radius: 37px;
  background: var(--bg);
  font-size: 11px; line-height: 1.4;
  display: flex; flex-direction: column;
}
.app-head {
  display: flex; align-items: center; gap: 7px;
  padding: 30px 14px 10px;
  border-bottom: 1px solid var(--line);
  font: 700 12.5px/1 var(--head);
}
.app-head .ic { margin-left: auto; font-size: 15px; }
.app-title { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font: 700 13px/1 var(--head); }
.app-title .ic { font-size: 15px; }
.app-title .push { margin-left: auto; }
.photo {
  position: relative; height: 150px; margin: 4px 12px 12px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, #4a2a66, var(--plum) 70%);
  display: grid; place-items: center;
}
.photo-paw { width: 56px; height: 56px; color: rgb(247 168 207 / 0.35); }
.tag {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: 10px;
}
.tag i { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.s-h { padding: 0 14px; font: 800 18px/1.1 var(--head); }
.s-meta { padding: 6px 14px 12px; color: var(--muted); }
.chip { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; background: var(--plum); color: var(--ink); font-weight: 700; font-size: 10px; }
.s-box { margin: 0 12px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); display: grid; gap: 6px; }
.s-box p { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.s-box .dim { color: var(--muted); font-weight: 400; }
.s-btn { margin: 0 12px 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 700; }
.pink { color: var(--pink); }

/* Alert area: the ZIP zone neighbors are notified in */
.zone {
  position: relative; flex: 1; margin: 0 12px 16px; min-height: 90px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(115deg, transparent 46%, #2a2f3a 47%, #2a2f3a 49%, transparent 50%),
    linear-gradient(20deg, transparent 60%, #232733 61%, #232733 62.5%, transparent 63.5%),
    linear-gradient(170deg, transparent 30%, #1d2230 31%, #1d2230 32%, transparent 33%),
    #121318;
}
.zone::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120px; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: rgb(236 58 135 / 0.18); border: 1.5px solid rgb(236 58 135 / 0.6);
}
.zone::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px #fff;
}
.zone span {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 2px 8px; border-radius: 999px; background: rgb(10 10 13 / 0.85); color: var(--muted); font-size: 9.5px; font-weight: 700;
}

/* Home screen */
.screen-home { padding: 30px 12px 0; }
.home-logo { width: 150px; margin: 0 auto 10px; }
.banner {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; margin-bottom: 10px;
  border: 1px solid rgb(236 58 135 / 0.4); border-radius: 12px;
  background: rgb(236 58 135 / 0.1); color: var(--pink); font-weight: 700;
}
.banner i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tile {
  aspect-ratio: 1 / 0.92;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 6px; text-align: center;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--tile-from), var(--tile-to));
  font: 700 11px/1.15 var(--head);
}
.tile .ic { font-size: 22px; stroke-width: 1.6; }
.tabbar {
  margin: auto -12px 0; height: 54px; flex: none;
  display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid var(--line); background: #0e0b12;
}
.tabbar span { width: 16px; height: 16px; border-radius: 5px; background: #3a2e46; }
.tabbar b { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; }
.tabbar b svg { width: 18px; height: 18px; color: #fff; }

/* Chat screen */
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; padding: 8px 12px; }
.bubble { max-width: 82%; padding: 9px 11px; border-radius: 16px; }
.bubble.me { align-self: flex-end; background: var(--pink); color: #fff; border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.shared { display: flex; gap: 8px; align-items: center; padding: 7px; margin-bottom: 7px; border-radius: 11px; background: rgb(255 255 255 / 0.14); }
.shared .sq { width: 30px; height: 30px; border-radius: 9px; background: #2a1030; display: grid; place-items: center; color: var(--pink-soft); font-size: 15px; }
.shared small { display: block; font-size: 8.5px; font-weight: 700; opacity: 0.85; }
.shared b { font-size: 11px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 22px; border-top: 1px solid var(--line); }
.composer span { flex: 1; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.composer b { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; color: #fff; font-size: 14px; }

/* Story */
.story { background: linear-gradient(180deg, var(--bg), #120a1a 30%, #120a1a 70%, var(--bg)); }
.story-inner { max-width: 720px; margin: 0 auto; }
.story h2 { margin-bottom: 1.75rem; }
.story-inner > p { color: #ddd0e4; font-size: 1.15rem; }
.story-inner > p + p { margin-top: 1.1rem; }
blockquote { margin: 3rem 0 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--pink); }
blockquote p { font: 600 clamp(1.4rem, 2.8vw, 1.9rem)/1.3 var(--head); color: var(--ink); }
cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--pink-soft); }

/* Features */
.features { max-width: 1200px; margin: 0 auto; display: grid; gap: clamp(5rem, 10vw, 8rem); }
.feature-row { display: grid; gap: 3rem; align-items: center; }
.feature-row h2 { margin-bottom: 1.5rem; max-width: 11em; }
.feature-phone { display: grid; place-items: center; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--plum); color: var(--pink-soft); }
.feature-list h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.feature-list p { color: var(--muted); }
.promises { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.promises li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; }
.promises .ic { margin-top: 0.25em; color: var(--pink); }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .feature-row.flip .feature-text { order: 2; }
}

/* Join */
.join { max-width: 1200px; margin: 0 auto; }
.join h2 { margin-bottom: 2.5rem; }
.steps { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative; padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 28px 28px 28px 6px;
  background: var(--card); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--violet);
  font: 800 1.35rem/1 var(--head);
}
.steps h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Where we're headed */
.next { background: linear-gradient(160deg, #2b1342, #13091d 60%); border-radius: 48px 48px 0 0; }
/* 1104px = the 1200px sections above minus their 48px side padding, so the edges line up. */
.next-inner { max-width: 1104px; margin: 0 auto; }
.next .lede { margin: 1rem 0 2.5rem; }
.road { display: grid; gap: 2rem 2.5rem; }
.road > div { padding-top: 1.25rem; border-top: 1px solid rgb(247 168 207 / 0.2); }
.road .ic { font-size: 1.6rem; color: var(--pink-soft); margin-bottom: 0.75rem; }
.road h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.road p { color: var(--muted); }
@media (min-width: 700px) { .road { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .road { grid-template-columns: repeat(4, 1fr); } }

/* Closing */
.closing { background: #13091d; text-align: center; display: grid; justify-items: center; gap: 1.75rem; }
.closing img { width: 96px; height: 96px; }
.closing h2 { max-width: 13em; }

/* Footer */
.footer {
  display: grid; gap: 1rem; justify-items: center; text-align: center;
  padding: 3rem 1.25rem calc(3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.95rem;
}
.tagline { font: 700 1.2rem/1 var(--head); color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.footer nav a { font-weight: 700; text-underline-offset: 4px; }
.footer nav a:hover { color: var(--pink-soft); }

/* Small phones: shrink the mockups a touch */
@media (max-width: 380px) { .phone { width: 270px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ripples span, .toast { animation: none; }
  .ripples span:first-child { opacity: 0.5; transform: scale(1.3); }
}
