/* Axo website. No JavaScript. Light and dark mode from prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --bg: #fbf8ff;
  --surface: #ffffff;
  --surface-2: #f1ebfd;
  --stage: #ece4fd;
  --ink: #211a2b;
  --muted: #5b5269;
  --line: #e4dcf2;
  --accent: #b8235a;
  --accent-hover: #9d1c4c;
  --accent-ink: #ffffff;
  --link: #a3205a;
  --focus: #6a3df0;
  --title-shadow: #ff9cbd;
  --code-bg: #211a2b;
  --code-ink: #f6f0ff;
  --shadow: 0 1px 2px rgb(33 26 43 / 6%), 0 10px 30px rgb(33 26 43 / 10%);
  --radius: 18px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141119;
    --surface: #1e1925;
    --surface-2: #1a1621;
    --stage: #26202f;
    --ink: #f3eefa;
    --muted: #b5abc6;
    --line: #322a3d;
    --accent: #ff8fb3;
    --accent-hover: #ffadc8;
    --accent-ink: #2b0a1a;
    --link: #ff9cbd;
    --focus: #c4b2ff;
    --title-shadow: #8c1f4a;
    --code-bg: #0c0a10;
    --code-ink: #f6f0ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; image-rendering: auto; }
picture { display: block; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-round); line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 1.25rem/1 var(--font-round);
}
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-block; padding: 8px 10px; border-radius: 10px; color: var(--ink);
  text-decoration: none; font-size: 0.95rem;
}
.nav a:hover { background: var(--surface-2); }
@media (max-width: 640px) { .nav .wide { display: none; } }

/* ---------- Buttons and code ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; font-weight: 650; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

code, .cmd { font-family: var(--font-mono); font-size: 0.9em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.cmd {
  display: block; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  background: var(--code-bg); color: var(--code-ink); font-size: 0.92rem; line-height: 1.5;
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
.cmd::before { content: "$ "; color: #a99bbf; user-select: none; -webkit-user-select: none; }
p code, li code, dd code {
  background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere;
}

/* ---------- Hero ---------- */

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.eyebrow {
  display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(4rem, 3rem + 5vw, 6.5rem); font-weight: 800; letter-spacing: -0.03em;
  margin: 6px 0 10px; text-shadow: 4px 4px 0 var(--title-shadow);
}
.promise { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.45; max-width: 30ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.badges li {
  font-size: 0.88rem; padding: 4px 12px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink);
}
.brew { margin-top: 24px; max-width: 480px; }
.brew-label { font-size: 0.92rem; color: var(--muted); }
.hero-art img {
  display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-art { margin: 0; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 10px; max-width: 62ch; }
.section-head { margin-bottom: 32px; }

/* ---------- Notch demo (pure CSS) ---------- */

.mac { margin: 0 auto; max-width: 900px; }
.screen {
  position: relative; border: 10px solid #1b1820; border-bottom-width: 0;
  border-radius: 22px 22px 0 0; overflow: hidden; min-height: 260px;
  outline: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 15% 100%, #f7a8a0 0%, rgb(247 168 160 / 0%) 55%),
    radial-gradient(80% 120% at 85% 110%, #8f7ae8 0%, rgb(143 122 232 / 0%) 60%),
    linear-gradient(180deg, #4b3a8c 0%, #b88ad8 55%, #f3b6b0 100%);
}
.mac-base {
  height: 16px; margin: 0 -4%; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #cfcbd6, #a9a4b3);
}
.menubar {
  display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 12px;
  background: rgb(30 20 50 / 35%); color: #fff; font-size: 13px;
}
.menubar .menus span { margin-right: 14px; }
.menubar .menus b { margin-right: 16px; }
.menubar .status { display: flex; align-items: center; gap: 12px; }
.menubar .status img { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .menubar .menus span, .menubar .status .opt { display: none; }
}
.island {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(480px, 94%); display: grid; padding: 38px 20px 18px;
  background: #000; color: #fff; border-radius: 0 0 30px 30px;
  box-shadow: 0 14px 40px rgb(0 0 0 / 40%);
}
.scene {
  grid-area: 1 / 1; display: flex; gap: 16px; align-items: center; opacity: 0;
  animation: scene 16s infinite;
}
.scene:nth-child(2) { animation-delay: 4s; }
.scene:nth-child(3) { animation-delay: 8s; }
.scene:nth-child(4) { animation-delay: 12s; }
/* Each scene shows for 3.5 s of a 16 s loop. The first one is visible at once. */
@keyframes scene {
  0%, 22% { opacity: 1; }
  25%, 97% { opacity: 0; }
  100% { opacity: 1; }
}
.scene img { height: 92px; width: auto; flex: none; animation: bob 1.2s steps(1) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.scene .t { font: 650 17px/1.3 var(--font); }
.scene .m { font-size: 14px; line-height: 1.4; color: #cfc9d9; margin-top: 3px; }
.scene .b { display: flex; gap: 8px; margin-top: 10px; }
.scene .b span { font-size: 13px; padding: 4px 12px; border-radius: 8px; background: #2c2833; color: #f2eff6; }
.scene .b span:first-child { background: #ecebef; color: #111; }
@media (max-width: 480px) {
  .island { padding: 34px 14px 14px; border-radius: 0 0 22px 22px; }
  .scene { gap: 10px; }
  .scene img { height: 64px; }
  .scene .t { font-size: 15px; }
  .scene .m { font-size: 13px; }
  .screen { min-height: 250px; border-width: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene img { animation: none; }
  .scene:nth-child(2) { opacity: 1; }
}
.mac figcaption { color: var(--muted); text-align: center; margin-top: 18px; font-size: 0.98rem; }

/* ---------- Features ---------- */

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.feature .sprite {
  height: 120px; border-radius: 14px; background: var(--stage);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.feature .sprite img { height: 96px; width: auto; }
.feature p { color: var(--muted); font-size: 0.98rem; }
.feature p a { font-weight: 600; }
@media (max-width: 560px) {
  .feature {
    display: grid; grid-template-columns: 76px 1fr; column-gap: 14px; row-gap: 4px;
    align-items: start; padding: 16px;
  }
  .feature .sprite { grid-row: 1 / span 2; height: 76px; margin: 0; }
  .feature .sprite img { height: 60px; }
}

/* ---------- Growth ---------- */

.grow {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.grow p { color: var(--muted); margin-top: 6px; }
.forms {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0 0; padding: 0;
  list-style: none; align-items: end;
}
.forms li { text-align: center; font-size: 0.9rem; font-weight: 600; }
.forms img { display: block; margin: 0 auto 6px; height: 160px; width: auto; }
@media (max-width: 480px) { .forms img { height: 84px; } .forms li { font-size: 0.78rem; } }

/* ---------- Buddies ---------- */

.buddies {
  display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 760px) { .buddies { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.buddy {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 8px 10px; text-align: center; min-width: 0;
}
.buddy .stage {
  height: 124px; border-radius: 12px; background: var(--stage);
  display: flex; align-items: center; justify-content: center;
}
.buddy img { height: 100px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 480px) {
  .buddy .stage { height: 96px; }
  .buddy img { height: 76px; }
  .buddy .name { font-size: 0.92rem; }
}
.buddy .name { display: block; font-weight: 650; margin-top: 8px; }
.buddy .tag { display: block; font-size: 0.8rem; color: var(--muted); }

/* ---------- Privacy summary ---------- */

.privacy-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.privacy-grid img { display: block; width: 100%; border-radius: var(--radius); }
.checks { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "\2713"; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 13px/22px var(--font); text-align: center;
}
.checks strong { color: var(--ink); }
.checks li { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 650; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p + p, .faq details > div p + ul, .faq details > div ul + p { margin-top: 10px; }
.faq ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
main > .section-alt:last-child { border-bottom: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.footer-brand img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); }

/* ---------- Text pages (privacy, 404) ---------- */

.doc { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
.doc .meta { color: var(--muted); margin-top: 8px; }
.doc h2 { font-size: 1.5rem; margin-top: 40px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .summary {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 20px 20px; margin-top: 28px;
}
.doc .summary h2 { margin-top: 16px; }

.lost { text-align: center; padding: 72px 0; }
.lost img { height: 120px; width: auto; }
.lost h1 { font-size: clamp(1.75rem, 1.4rem + 2vw, 2.25rem); margin-top: 16px; }
.lost p { color: var(--muted); margin-top: 10px; }
.lost .btn { margin-top: 24px; }
