/* AuraFlow public pages. One file, no build, no external requests.
   Look: the dark Lagoon / Aurora tokens from docs/mockups/2026-10-05-clean-look-and-icons.html.
   Mobile first, 16 px gutters, sentence case everywhere (no ALL CAPS). */

@font-face {
  font-family: "Plus Jakarta Sans Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #040d12;
  --surface: #081820;
  --ink: #e8f4f6;
  --ink2: #93aab3;
  --line: rgba(160, 220, 230, 0.12);
  --acc: #2ee6d6;
  --vio: #8b7cff;
  --gold: #f0c46a;
  --on-acc: #03222a;
  --gutter: 16px;
  --radius: 22px;
  --font: "Plus Jakarta Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 28rem at 85% -8%, rgba(139, 124, 255, 0.16), transparent 70%),
    radial-gradient(44rem 26rem at -10% 0%, rgba(46, 230, 214, 0.12), transparent 70%),
    var(--page);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap.wide { max-width: 64rem; }

img { max-width: 100%; height: auto; }

a { color: var(--acc); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #7ff3e9; }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--acc);
  color: var(--on-acc);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-head { padding: 14px 0 6px; }
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 11px; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0 2px; margin-left: -10px; }
.site-head nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
}
.site-head nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.site-head nav a[aria-current="page"] { color: var(--acc); }
@media (min-width: 720px) { .site-head nav { margin-left: 0; } }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2.4rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.6rem; }
p { margin: 0.8rem 0 0; }
ul, ol { margin: 0.8rem 0 0; padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}
.lede { font-size: 1.15rem; color: var(--ink2); max-width: 36rem; }
.muted { color: var(--ink2); }

/* Long-text pages */
.doc { padding: 28px 0 56px; }
.doc .updated { color: var(--ink2); font-size: 0.95rem; margin-top: 0.6rem; }

.callout {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 18px;
  margin-top: 1.4rem;
}
.callout > :first-child { margin-top: 0; }
.callout.limited { box-shadow: inset 0 0 0 1px rgba(46, 230, 214, 0.4); }

/* Tables are stacked cards on phones, real tables from 720 px */
.table-wrap { margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead { position: absolute; left: -9999px; }
tr {
  display: block;
  background: var(--surface);
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
td, th { display: block; padding: 3px 0; text-align: left; font-weight: 400; vertical-align: top; }
td:first-child, th[scope="row"] { font-weight: 700; color: var(--ink); }
td + td { color: var(--ink2); }

@media (min-width: 720px) {
  thead { position: static; }
  tr { display: table-row; background: none; box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
  th, td { display: table-cell; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
  thead th { color: var(--ink2); font-weight: 600; font-size: 0.85rem; }
  td:first-child, th[scope="row"] { width: 30%; }
  td + td { color: inherit; }
}

/* Home */
.hero { padding: 36px 0 12px; }
.hero .mark {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(46, 230, 214, 0.18);
}
.hero h1 { margin-top: 22px; }
.hero .lede { margin-top: 14px; }
.byline { margin-top: 12px; color: var(--ink2); font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li {
  margin: 0;
  background: rgba(46, 230, 214, 0.1);
  color: var(--acc);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.chips li:nth-child(3n + 2) { background: rgba(139, 124, 255, 0.14); color: #b4aaff; }
.chips li:nth-child(3n) { background: rgba(240, 196, 106, 0.12); color: var(--gold); }

.grid { display: grid; gap: 12px; margin-top: 18px; padding: 0; list-style: none; }
.grid li { margin: 0; }
.card {
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 18px;
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { margin-top: 0.45rem; color: var(--ink2); font-size: 0.97rem; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--acc);
  color: var(--on-acc);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: #7ff3e9; color: var(--on-acc); }
.btn.quiet { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.btn.quiet:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.links-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 1rem 0 0; padding: 0; list-style: none; }
.links-row li { margin: 0; }

/* Footer */
.site-foot {
  margin-top: 40px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: 0.92rem;
}
.site-foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-foot p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { color: var(--ink2); }
.site-foot a:hover { color: var(--ink); }

@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 64px; }
  .doc { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  a { color: #000; }
  .site-head nav, .skip { display: none; }
  .callout, tr, .card { box-shadow: none; border: 1px solid #999; background: #fff; }
}
