@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; }
/* AvaTails landing page. Same tokens as the app. */
:root {
  --ground: #D7EFE6; --page: #FFFFFF; --ink: #1F2A44; --ink-soft: #55607A; --tang: #FF7A3D; --tang-deep: #E15E22; --sun: #FFD23F; --line: #BFDCD1;
  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif; --body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--ground); color: var(--ink); font-family: var(--body); line-height: 1.5; -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.05; margin: 0; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border: 3px solid var(--ink); border-radius: 999px; background: var(--page);
  font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--tang); color: #fff; }
.btn.big { font-size: 1.1rem; padding: 14px 26px; }
:focus-visible { outline: 4px solid var(--tang-deep); outline-offset: 3px; }

.duo { display: inline-flex; align-items: flex-end; }
.duo svg { width: 120px; height: auto; display: block; }
.duo svg + svg { width: 100px; margin-left: -16%; }
.duo.small svg { width: 40px; } .duo.small svg + svg { width: 34px; }

.top { max-width: 1180px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; display: grid; gap: clamp(40px, 7vw, 88px); }
.kicker { margin: 0 0 8px; font-family: var(--display); font-weight: 800; color: var(--tang-deep); letter-spacing: .02em; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: 12px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.lede { font-size: 1.15rem; color: var(--ink-soft); font-weight: 700; max-width: 46ch; margin: 18px 0 24px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 800; }
.ticks li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2E9E5B; margin-right: 8px; border: 2px solid var(--ink); vertical-align: 1px; }
.devices { position: relative; padding: 0 6% 12% 0; }
.tablet { border: 4px solid var(--ink); border-radius: 30px; background: var(--ink); padding: 14px; box-shadow: 14px 14px 0 var(--line); transform: rotate(-1.5deg); }
.tablet img { border-radius: 18px; }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; border: 4px solid var(--ink); border-radius: 26px; background: var(--ink); padding: 8px; box-shadow: 8px 8px 0 var(--line); transform: rotate(4deg); }
.phone img { border-radius: 18px; }

.band h2, .get h2, .books h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.sub { color: var(--ink-soft); font-weight: 700; margin: 10px 0 24px; max-width: 60ch; }
.acts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.act { background: var(--page); border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 7px 0 var(--ink); }
.act img { border-bottom: 3px solid var(--ink); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.act h3 { font-size: 1.4rem; padding: 14px 18px 0; }
.act p { margin: 4px 0 0; padding: 0 18px 18px; color: var(--ink-soft); font-weight: 700; }
.more { font-weight: 700; color: var(--ink-soft); margin: 20px 0 0; }

.books { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; justify-items: center; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #FFFDF6, #FFF1D2 55%, #F7E1BD);
  border: 3px solid var(--ink); border-radius: 32px; padding: clamp(22px, 4vw, 48px); box-shadow: 10px 10px 0 var(--line); }
.books-copy { max-width: 62ch; }
.books-copy p { font-weight: 700; color: var(--ink-soft); }
.note { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
/* Artwork from the app */
.fill { fill: #fff; stroke: var(--ink); stroke-width: var(--sw, 5); stroke-linejoin: round; cursor: pointer; transition: fill .18s; }
.pic { stroke: var(--ink); stroke-width: var(--sw, 5); stroke-linejoin: round; }
.line { fill: none; stroke: var(--ink); stroke-width: var(--sw, 5); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.thin { stroke-width: var(--swt, 3.5); }
.outline { fill: none !important; stroke: var(--ink); stroke-width: var(--sw, 5); pointer-events: none; }
.ink { fill: var(--ink); pointer-events: none; } .shine { fill: #fff; pointer-events: none; }
.cheek { fill: #F8A5B5; opacity: .75; pointer-events: none; } .eyewhite { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.label { font-family: var(--display); font-weight: 800; text-anchor: middle; fill: var(--ink); font-size: 22px; pointer-events: none; }

/* Book mock-ups: the real covers as 3D books on a shelf */
.stage { --gap: clamp(14px, 3vw, 40px); position: relative; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px;
  align-items: start; padding: 10px clamp(6px, 2vw, 24px) 10px; perspective: 1600px; }
.bk-shelf { display: block; justify-self: stretch; width: auto; height: 22px; margin: -10px calc(var(--gap) / -2 - 1px) 4px; position: relative; z-index: 0;
  background: linear-gradient(#F6E2C5, #E5C08F 55%, #C99E6C); border-block: 3px solid var(--ink); box-shadow: 0 10px 12px -6px rgba(31, 42, 68, .35); }
.bk:first-child .bk-shelf { border-left: 3px solid var(--ink); border-radius: 10px 0 0 10px; margin-left: 0; }
.bk:last-child .bk-shelf { border-right: 3px solid var(--ink); border-radius: 0 10px 10px 0; margin-right: 0; }
.bk-3d-wrap { display: flex; align-items: flex-end; height: clamp(220px, 28vw, 330px); width: 100%; justify-content: center; }
.bk { position: relative; z-index: 1; border: 0; background: none; padding: 0; cursor: pointer; display: grid; gap: 14px; justify-items: center; font: inherit; color: inherit;
  transition: transform .6s cubic-bezier(.2, .9, .25, 1.15), opacity .5s; transition-delay: calc(var(--i) * 90ms); }
.stage.waiting .bk { transform: translateY(60px); opacity: 0; }
.bk-3d { position: relative; display: block; width: 100%; max-width: 230px; transform-style: preserve-3d; transform: rotateY(18deg) rotateX(3deg); transition: transform .5s cubic-bezier(.2, .8, .25, 1); }
.bk:nth-child(even) .bk-3d { transform: rotateY(-18deg) rotateX(3deg); }
.bk:hover .bk-3d, .bk:focus-visible .bk-3d { transform: rotateY(0deg) translateY(-14px) scale(1.04); }
.bk-front { position: relative; z-index: 2; display: block; width: 100%; height: auto; border-radius: 2px 7px 7px 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 22px 26px -10px rgba(31, 42, 68, .55), 0 6px 10px rgba(31, 42, 68, .25); }
/* the fold where the cover meets the spine */
.bk-3d::before { content: ""; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 9%; border-radius: 2px 0 0 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.22) 35%, rgba(0,0,0,.08) 60%, transparent); }
.bk-shine { position: absolute; z-index: 3; inset: 0; border-radius: 2px 7px 7px 2px; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28), transparent 38%); }
.bk-spine { position: absolute; z-index: 1; top: 0; left: 0; width: 26px; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 60%), var(--spine);
  transform-origin: left center; transform: rotateY(90deg); border-radius: 2px 0 0 2px; }
.bk-pages { position: absolute; z-index: 1; top: 1.2%; right: 0; width: 24px; height: 97.6%; transform-origin: right center; transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, #fff 0 1.5px, #E6E1D6 1.5px 2.5px); }
.bk-label { display: grid; gap: 2px; text-align: center; align-content: start; min-height: 4.4em; }
.bk-label strong { font-family: var(--display); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.1; }
.bk-label small { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.bk-cta { font-weight: 800; background: var(--page); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 16px; box-shadow: 0 4px 0 var(--ink); transition: background .2s, color .2s; }
.bk:hover .bk-cta, .bk:focus-visible .bk-cta { background: var(--tang); color: #fff; }
.stage .bk-label, .stage .bk-cta { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .stage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .bk .bk-shelf { border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); border-radius: 10px; margin-inline: -6px; }
  .bk-3d-wrap { height: auto; }
}

/* Look-inside viewer */
.viewer { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 3px solid var(--ink); border-radius: 28px; padding: clamp(14px, 3vw, 24px);
  background: var(--bt, #fff); box-shadow: 0 14px 0 var(--ink); color: var(--ink); overflow: auto; }
.viewer::backdrop { background: rgba(31, 42, 68, .6); }
.v-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v-head h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.v-close { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: var(--page); font-size: 1.6rem; line-height: 1; cursor: pointer; font-weight: 800; }
.v-spread { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 0 0 0 transparent; perspective: 1400px; }
.vpage { position: relative; padding: clamp(10px, 2vw, 18px) clamp(10px, 2vw, 18px) 34px; display: grid; justify-items: center; gap: 6px; }
.vpage + .vpage { border-left: 2px dashed #CDD3DC; box-shadow: inset 14px 0 18px -14px rgba(31, 42, 68, .25); }
.vpage-art { width: 100%; max-width: 380px; display: grid; place-items: center; }
.vpage-art canvas { display: block; max-width: 100%; max-height: min(52vh, 440px); width: auto; height: auto; cursor: pointer; touch-action: manipulation; }
.vpage-say { margin: -2px 0 0; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.vpage-name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.vpage-num { position: absolute; bottom: 8px; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.v-spread.turn-next { animation: turnNext .45s ease-out; } .v-spread.turn-prev { animation: turnPrev .45s ease-out; }
@keyframes turnNext { from { transform: rotateY(-12deg) translateX(30px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes turnPrev { from { transform: rotateY(12deg) translateX(-30px); opacity: .3; } to { transform: none; opacity: 1; } }
.v-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.v-foot .btn:disabled { opacity: .35; cursor: default; transform: none; }
.v-pos { font-weight: 800; color: var(--ink-soft); text-align: center; }
.v-palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--ink); }
.v-tip { text-align: center; font-weight: 700; color: var(--ink-soft); margin: 10px 0 0; font-size: .9rem; }

.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 22px; }
.grid3 > div { background: var(--page); border: 3px solid var(--ink); border-radius: 22px; padding: 20px; }
.grid3 h3 { font-size: 1.3rem; } .grid3 p { margin: 6px 0 0; color: var(--ink-soft); font-weight: 700; }
.grid4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 22px; }
.store { display: grid; gap: 6px; align-content: start; background: rgba(255, 255, 255, .55); border: 3px dashed var(--ink-soft); border-radius: 22px; padding: 18px 20px; text-decoration: none; }
.store strong { font-family: var(--display); font-size: 1.35rem; }
.store span { color: var(--ink-soft); font-weight: 700; }
.store.live { background: var(--page); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.store.live:hover { transform: translateY(-2px); }

.foot { max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; display: flex; align-items: center; gap: 12px; justify-content: center; font-weight: 700; color: var(--ink-soft); }
.legal { max-width: 760px; display: block; }
.legal h1 { font-size: 2.6rem; margin: 10px 0 6px; } .legal h2 { font-size: 1.5rem; margin: 26px 0 6px; } .legal p { font-weight: 600; }

.offline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; background: var(--ink); color: #fff;
  border-radius: 32px; padding: clamp(22px, 4vw, 44px); box-shadow: 10px 10px 0 var(--line); }
.off-badge { width: clamp(64px, 10vw, 96px); aspect-ratio: 1; border-radius: 24px; background: var(--sun); color: var(--ink); display: grid; place-items: center; border: 3px solid #fff; }
.off-badge svg { width: 64%; }
.offline h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.off-copy > p { font-weight: 700; color: #D9E2F0; max-width: 60ch; margin: 10px 0 18px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { counter-increment: s; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .25); border-radius: 18px; padding: 14px 16px 14px 56px; position: relative; font-weight: 700; color: #E6ECF5; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--tang); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.steps strong { color: #fff; }
@media (max-width: 560px) { .offline { grid-template-columns: 1fr; } .top .btn { padding: 8px 14px; } .brand { font-size: 1.25rem; } }
@media (max-width: 860px) {
  .hero, .books { grid-template-columns: 1fr; }
  .devices { padding-bottom: 16%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

.logo-img { width: 48px; height: 48px; border-radius: 50%; }

/* Accessibility statement (/accessibility) */
.a11y-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 16px 0 20px; padding: 0; }
.a11y-options div { background: var(--page); border: 3px solid var(--ink); border-radius: 18px; padding: 14px 16px; }
.a11y-options dt { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.a11y-options dd { margin: 4px 0 0; font-weight: 600; color: var(--ink-soft); }
.legal .btn { margin: 4px 0 16px; cursor: pointer; font: inherit; font-weight: 800; color: #fff; }
