/* AvaTails landing page (get.html). Matches the app: Baloo 2 + Nunito, ink outlines with a solid "lift", sky-to-meadow wash. */
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2.woff") format("woff"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito.woff") format("woff"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #1F2A44; --ink-soft: #4E5874; --pink: #D9467F; --pink-soft: #FDE3EE;
  --sky: #CDEBFA; --sky-deep: #9FD3F2; --meadow: #4CAF6A; --sun: #FFD23F; --orange: #F27A2E; --wash: #FFF6E8; --paper: #FFFFFF;
  --teal: #46C2B5; --grape: #A884E8; --rose: #F48DB6; --lime: #8BD15A; --blue: #6CB7F2;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif; --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --lift: 0 5px 0 var(--ink); --r: 26px;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--wash); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 4px solid var(--pink); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper);
  font: 800 1.05rem/1 var(--body); text-decoration: none; box-shadow: var(--lift); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.go { background: var(--orange); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.6rem/1 var(--display); }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); }
.brand b { color: var(--pink); font-weight: 800; }
.top nav { display: flex; gap: 10px; }
.top nav .btn { min-height: 44px; padding: 8px 18px; font-size: .98rem; }

/* ---------- Hero: the sky scene ---------- */
.sky { background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, #E6F5FD 100%); position: relative; overflow: hidden; }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; background: #fff; opacity: .7; }
.sky::before { width: 180px; height: 180px; left: -40px; top: 120px; }
.sky::after { width: 90px; height: 90px; left: 34%; top: 60px; opacity: .55; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 12px; padding-top: 8px; }
.hero-copy { padding: 28px 0 96px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 .pink { color: var(--pink); }
.hero .lede { margin: 18px 0 28px; max-width: 34ch; font-size: 1.2rem; font-weight: 700; color: var(--ink-soft); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.85); font-weight: 800; font-size: .92rem; }
.hero-art { align-self: end; position: relative; }
.hero-art img { width: 100%; border-radius: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 12%); -webkit-mask-composite: source-in; mask-composite: intersect; }
/* The open book's edge becomes the bottom of the sky */
.page-edge { display: block; width: 100%; height: 56px; margin-top: -55px; position: relative; z-index: 1; }

/* ---------- Six places to play ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-weight: 700; font-size: 1.1rem; }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.place { position: relative; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--lift); padding: 16px 14px 18px; text-align: center; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 60%), var(--tone); }
.place > img { height: 96px; width: auto; margin: 0 auto 10px; object-fit: contain; }
.place h3 { font-size: 1.2rem; }
.place p { margin-top: 6px; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.place.books { --tone: var(--teal); } .place.letters { --tone: var(--sun); } .place.numbers { --tone: var(--blue); }
.place.create { --tone: var(--lime); } .place.animals { --tone: var(--grape); } .place.world { --tone: var(--rose); }
.place .fan { display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 96px; margin: 0 0 10px; }
.place .fan img { width: 38%; max-width: 64px; height: auto; flex: none; margin: 0 -6%; border: 2px solid var(--ink); border-radius: 6px; position: relative; }
.place .fan img:nth-child(1) { transform: rotate(-12deg); }
.place .fan img:nth-child(2) { transform: rotate(10deg); order: 3; }
.place .fan img:nth-child(3) { width: 44%; max-width: 72px; z-index: 1; order: 2; }

/* ---------- Picture books ---------- */
.book-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.screen { border: 4px solid var(--ink); border-radius: 28px; background: var(--ink); padding: 10px; box-shadow: 12px 12px 0 var(--sky-deep); }
.screen img { border-radius: 18px; }
.books-copy p { margin-top: 14px; color: var(--ink-soft); font-weight: 700; max-width: 46ch; }
.shelf { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 14px; }
.shelf a { display: block; width: 104px; text-decoration: none; font-weight: 800; font-size: .85rem; line-height: 1.25; text-align: center; }
.shelf img { border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 var(--ink); margin-bottom: 8px; transition: transform .15s; }
.shelf a:hover img { transform: translateY(-3px) rotate(-2deg); }
.shelf .tag { display: block; color: var(--pink); }

/* ---------- A peek inside ---------- */
.peek { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.peek figure { margin: 0; }
.peek img { border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--lift); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #fff; }
.peek figcaption { margin-top: 12px; }
.peek figcaption b { display: block; font: 800 1.15rem/1.1 var(--display); }
.peek figcaption span { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }

/* ---------- Grown-ups ---------- */
.grown { background: var(--paper); border: 3px solid var(--ink); border-radius: 34px; box-shadow: var(--lift); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }
.grown dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.grown dt { font: 800 1.2rem/1.15 var(--display); }
.grown dd { margin: 4px 0 0; color: var(--ink-soft); font-weight: 700; }
.grown .offline { margin-top: 16px; color: var(--ink-soft); font-weight: 700; }

/* ---------- Where to get it ---------- */
.get { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.get li { border: 3px solid var(--ink); border-radius: 22px; padding: 18px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.get li.live { background: #E4F6E9; }
.get strong { font: 800 1.25rem/1.1 var(--display); }
.get .state { font-weight: 900; font-size: .9rem; }
.get li.live .state { color: #1E7A3F; }
.get li.soon .state { color: var(--pink); }
.get span:last-child { color: var(--ink-soft); font-weight: 700; font-size: .95rem; }
.get a { font-weight: 800; }

.foot { margin-top: clamp(56px, 8vw, 96px); padding: 28px 0 40px; border-top: 3px solid var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-weight: 700; color: var(--ink-soft); }
.foot img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); }

/* ---------- One moment of motion: Tuppy and Ava bob gently once the page loads ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: arrive .9s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes arrive { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .get { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grown { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-inline: -16px; }
  .hero-art img { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
  .hero-copy { padding: 0 0 80px; margin-top: -24px; }
  .book-split { grid-template-columns: 1fr; }
  .grown dl { grid-template-columns: 1fr; }
  .top nav .btn.shop { display: none; }
}
@media (max-width: 480px) {
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .place > img, .place .fan { height: 76px; }
  .peek, .get { grid-template-columns: 1fr; }
  .shelf a { width: 31%; }
}

/* ---------- Ava shows you around ---------- */
.tour-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.guide { display: grid; gap: 18px; justify-items: start; }
.guide-face { width: 132px; height: 132px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: var(--lift); object-fit: cover; }
.bubble { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; padding: 16px 20px; font: 800 1.3rem/1.25 var(--display); min-height: 5.2em; box-shadow: var(--lift); }
.bubble::before { content: ""; position: absolute; left: 42px; top: -14px; width: 22px; height: 22px; background: var(--paper); border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 800 .95rem/1 var(--body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--pink); color: #fff; }
.tablet { position: relative; aspect-ratio: 16 / 10; border: 4px solid var(--ink); border-radius: 30px; background: var(--ink); padding: 12px; box-shadow: 14px 14px 0 var(--sky-deep); }
.tablet img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; object-position: top; border-radius: 20px; opacity: 0; transition: opacity .5s ease; }
.tablet img.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .bubble.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
  @keyframes pop { from { transform: scale(.94); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .tablet img { transition: none; } }

/* ---------- The book slideshow ---------- */
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.shelf-nav { display: flex; gap: 10px; margin-bottom: 28px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--lift); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.round svg { width: 24px; height: 24px; }
.round:disabled { opacity: .35; cursor: default; }
.slides { list-style: none; margin: 0 -16px; padding: 4px 16px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 21%, 220px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; }
.slides li { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.slides img { width: 100%; aspect-ratio: 640 / 828; object-fit: cover; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 5px 0 var(--ink); }
.slides b { font: 800 1.05rem/1.15 var(--display); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: .9rem; box-shadow: 0 3px 0 var(--ink); }
.slides .soon { font-weight: 900; font-size: .9rem; color: var(--pink); }

@media (max-width: 760px) {
  .tour-stage { grid-template-columns: 1fr; }
  .guide { grid-template-columns: auto 1fr; align-items: center; }
  .guide-face { width: 84px; height: 84px; }
  .bubble { font-size: 1.1rem; min-height: 0; }
  .bubble::before { left: -14px; top: 22px; transform: rotate(-45deg); }
  .chips { grid-column: 1 / -1; }
  .tablet { order: 2; border-radius: 22px; padding: 8px; }
  .tablet img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 14px; }
  .shelf-nav { display: none; }
  .slides { grid-auto-columns: 46%; }
}
