/* AeroFluxStudio website styles */
:root {
  --ivory: #faf7f2;
  --paper: #ffffff;
  --sand: #f1ece3;
  --line: #e4ddd1;
  --ink: #1f1f1f;
  --ink-2: #4a4744;
  --ink-3: #75706a;
  --rust: #b8491f;
  --rust-dark: #963a17;
  --blue: #2f63e0;
  --green: #2e9b4a;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(31, 31, 31, .04), 0 8px 24px rgba(31, 31, 31, .06);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 12px 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
}

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -260px; top: -300px; border: 2px solid rgba(184, 73, 31, .35); }
.hero::after { width: 520px; height: 520px; left: -360px; bottom: -430px; border: 2px solid rgba(184, 73, 31, .22); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; }
.hero-logo { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-size: 1rem; line-height: 1.2; }
.btn:hover { background: #000; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sand); color: var(--ink); }
.btn.soon { background: var(--paper); color: var(--ink-2); border-color: var(--line); cursor: default; }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.alt .card { background: var(--ivory); box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--ink-3); font-size: .95rem; }
.app-card { display: flex; flex-direction: column; gap: 14px; }
.app-card .top { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.app-icon.abacus { display: grid; place-items: center; background: linear-gradient(135deg, #3d74ea, #6fc3b8); }
.app-icon.abacus svg { width: 48px; height: 48px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); letter-spacing: .02em; }
.tag.kids { background: #e7efff; color: #234fb8; }
.tag.game { background: #e6f5ea; color: #1f7a38; }
.app-card .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .95rem; }
.feature h3 { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rust); flex: none; }

/* Screenshots */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; -webkit-overflow-scrolling: touch; }
@media (min-width: 1000px) { .shots { justify-content: center; } }
.shot { flex: 0 0 auto; width: 230px; scroll-snap-align: start; margin: 0; }
.shot .phone { background: #1c1c1e; padding: 8px; border-radius: 30px; box-shadow: 0 14px 34px rgba(31,31,31,.18); }
.shot img { border-radius: 23px; width: 100%; aspect-ratio: 390 / 828; object-fit: cover; object-position: top; }
.shot.tall img { aspect-ratio: 460 / 999; }
.shot figcaption { font-size: .92rem; color: var(--ink-2); margin-top: 12px; text-align: center; font-weight: 600; }
.shots-note { font-size: .88rem; color: var(--ink-3); }

/* Info / callouts */
.callout { border-left: 4px solid var(--rust); background: var(--paper); padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 24px 0; }
.callout.blue { border-color: var(--blue); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }

/* Legal / long-form pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: .4em; }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.meta { color: var(--ink-3); font-size: .95rem; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; columns: 2 240px; column-gap: 32px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--rust); text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sand); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }

/* Footer */
.site-footer { background: var(--ink); color: #d9d4cc; padding: 48px 0 32px; margin-top: 24px; }
.site-footer a { color: #f3eee6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.site-footer li { margin-bottom: 8px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.foot-brand img { width: 34px; height: 34px; border-radius: 8px; }
.copy { border-top: 1px solid #3a3836; margin-top: 32px; padding-top: 20px; font-size: .88rem; color: #a9a39a; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero::before, .hero::after { display: none; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
  .card { padding: 20px; }
  .shot { width: 200px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.card h3:first-child { margin-top: 0; }

/* Per-app page links */
.subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 28px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; }
.subnav span { font-weight: 800; margin-right: 6px; padding-left: 4px; }
.subnav a { color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.subnav a:hover { background: var(--sand); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.doc .qa h3 { margin-top: 1.4em; font-size: 1.05rem; }
.doc .qa h3 + p { margin-top: 0; }
.doc blockquote { margin: 1em 0; }
