/* Simple launch page (2026-11-17 rewrite): one column, few sections, plain words. No frameworks.
   Theme colours are the only thing that differs between the owl and panda pages. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b120d; --bg-2: #111b14; --card: #16231a; --line: #26382b;
  --text: #eef3ea; --muted: #a9b8a6;
  --accent: #7fc47a; --accent-ink: #0b120d; --accent-2: #f0be78; --soft: #1e3123;
  --radius: 14px; --wrap: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 780; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; margin-right: auto; }
.nav a.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a.link:hover { color: var(--text); }
@media (max-width: 640px) { .nav a.link { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--accent); transition: transform .15s, box-shadow .15s; }
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 22px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { display: block; text-align: center; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.center .btns { justify-content: center; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.mascot { width: min(360px, 80%); margin: 0 auto; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 24px 22px rgba(0,0,0,.12)); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .lede { margin: 0 auto; } .hero .btns { justify-content: center; } .mascot { width: 220px; order: -1; } }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--bg-2); }

/* Live demo chat */
.chat { max-width: 560px; margin: 28px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-align: left; box-shadow: 0 20px 40px -28px rgba(0,0,0,.35); min-height: 300px; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; margin: 0 0 10px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.msg.on { opacity: 1; transform: none; }
.msg.you { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg.bot { background: var(--soft); border-bottom-left-radius: 4px; }
.msg.ask { background: transparent; border: 2px dashed var(--accent-2); }
.msg .pill { display: inline-block; margin: 8px 6px 0 0; padding: 4px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.msg .pill.no { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* Steps + features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; counter-reset: s; list-style: none; padding: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--muted); }
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 36px; padding: 0; margin: 28px 0 0; list-style: none; }
.list li { padding: 14px 0; border-top: 1px solid var(--line); }
.list strong { display: block; }
.list span { color: var(--muted); }
@media (max-width: 760px) { .steps, .list { grid-template-columns: 1fr; } }

/* Safety words */
.words { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 22px 0; list-style: none; }
.words li { padding: 8px 18px; border-radius: 999px; border: 2px solid var(--accent-2); font-weight: 700; }
.reveal.on .words li { animation: pop .45s both; }
.words li:nth-child(2) { animation-delay: .08s !important; } .words li:nth-child(3) { animation-delay: .16s !important; }
.words li:nth-child(4) { animation-delay: .24s !important; } .words li:nth-child(5) { animation-delay: .32s !important; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Download */
.os { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin: 26px 0 16px; }
.os a { display: block; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
.os a:hover { transform: translateY(-3px); border-color: var(--accent); }
.os a.main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.os small { display: block; opacity: .75; font-size: .82rem; margin-top: 4px; }
@media (max-width: 760px) { .os { grid-template-columns: 1fr; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; align-items: start; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.tier.best { border: 2px solid var(--accent); position: relative; }
.tier.best::before { content: "Most popular"; position: absolute; top: -13px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 2.3rem; font-weight: 800; margin: 4px 0 2px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.tier ul { padding-left: 1.1em; color: var(--muted); margin: 14px 0 20px; }
.tier .note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.footer { padding: 36px 0 48px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer a { color: inherit; }

/* Scroll reveal: only hides content once JS has confirmed it can show it again */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .msg { opacity: 1; transform: none; }
}

/* Bamwell: night grove hero with drifting lantern dust */
.hero { position: relative; }
.hero .dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.grove { border-radius: 22px; box-shadow: 0 30px 60px -30px #000; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@media (max-width: 820px) { .grove { order: -1; } }
