/* axi0 Space: a launch page in the axi0 family. True black, crisp white type, one big glowing device (the 3-in-1)
   that unrolls as you scroll, with the axi0 orange core as its light, and faint stars behind (assets/space.js).
   space.js sets --p (scroll progress through the device section, 0 to 1) and --l/--r (the device's left and
   right edges, in cqh numbers). Without JavaScript (nojs.css) or with reduced motion the device simply shows
   unrolled. Self-hosted type, nothing fetched from another site. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.45%;
  ascent-override: 96.57%;
  descent-override: 24.89%;
  line-gap-override: 0%;
}
/* The headline is set condensed (font-stretch 88%), which Arial cannot do, so the fallback above set it ~12%
   wider: on 412px phones it took two lines until Instrument Sans arrived, and the device below moved up 19px
   (layout shift 0.059). This face is narrowed to the headline's width in Instrument Sans (size-adjust; the
   vertical metrics are the ones above, rescaled), so the line breaks and everything under them stay put. */
@font-face {
  font-family: "Instrument Sans Condensed Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 90.8%;
  ascent-override: 106.83%;
  descent-override: 27.53%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a5ae;   /* 8.4:1 on black */
  --faint: #73777f;   /* 4.6:1 on black */
  --line: rgba(255, 255, 255, 0.12);
  --core: #f6a04d;    /* the axi0 core, as on axi0.tech */
  --core-ink: #f6a04d;  /* orange text and focus rings (darker in light, for 4.5:1) */
  --bg: #000;
  --head: #fff;         /* headings */
  --btn: #fff;          /* the white buttons on black; ink buttons on paper */
  --btn-ink: #000;
  --drop: rgba(0, 0, 0, 0.95);   /* the device's shadow on the floor */
  --sans: "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --p: 0;
  --l: -15;
  --r: 15;
}
/* The suite's light palette (search.css's values): warm paper, dark ink, a darker orange for orange text. Chosen with
   the switch in the row (theme.js: html[data-axi0-theme]) or, when nothing is chosen, by a device that prefers light.
   The device keeps its dark glass and its core; the stars belong to the dark sky and rest. */
html[data-axi0-theme="light"] {
  color-scheme: light;
  --ink: #17140f; --muted: #5a5248; --faint: #675f54; --line: rgba(60, 40, 20, 0.16); --core-ink: #9a4a0a;
  --bg: #f6f2ea; --head: #17140f; --btn: #17140f; --btn-ink: #fff; --drop: rgba(60, 40, 10, 0.4);
}
@media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"]) {
    color-scheme: light;
    --ink: #17140f; --muted: #5a5248; --faint: #675f54; --line: rgba(60, 40, 20, 0.16); --core-ink: #9a4a0a;
    --bg: #f6f2ea; --head: #17140f; --btn: #17140f; --btn-ink: #fff; --drop: rgba(60, 40, 10, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
body { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--core-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(246, 160, 77, 0.35); }
p, li { text-wrap: pretty; }

.stars { position: fixed; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
html[data-axi0-theme="light"] .stars { display: none; }
@media (prefers-color-scheme: light) { html:not([data-axi0-theme="dark"]) .stars { display: none; } }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; border-radius: 999px; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---- top bar -------------------------------------------------------------------------------------------- */
/* The axi0 app bar: launcher.css (the shared file, at /axi0/) lays header.top out as the suite's row (80 px, the
   controls centered on y = 50, the wordmark 20 px from the left edge, the launcher 14 px from the right; phones 56 px,
   y = 28, 16 / 10 px) and draws the Key pill, the light/dark switch and the launcher (launcher.js) in .top-right;
   the switch turns this page and every other axi0 page with it (theme.js, the Key profile). */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: 1rem; padding: 0.9rem var(--pad);
  background: linear-gradient(var(--bg) 35%, transparent);
}
.top .top-right { flex: none; }
/* min-height 24px: the wordmark is a link, and WCAG 2.2 AA 2.5.8 wants a target at least 24x24 (the nav links
   below already carry 44px). The glyphs are 22.4px tall at phone width, so the box is the only thing short. */
.wordmark { display: inline-flex; align-items: baseline; min-height: 24px; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
/* The dotted zero of axi0.tech: the orange core sits inside the 0. */
.zero { letter-spacing: 0; background: radial-gradient(circle at 50% 49.5%, var(--core) calc(0.075em - 0.4px), transparent calc(0.075em + 0.4px)); }
.product { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.top nav a { display: none; align-items: center; min-height: 44px; padding: 0 0.8rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.pill { display: inline-flex; min-height: 40px; padding: 0 1.05rem; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-family: var(--sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.top nav a.pill:hover { background: var(--core); color: #000; }
@media (min-width: 48rem) { .top nav a { display: inline-flex; } }
/* phones (<=600px): the row has no space left for the pill - the wordmark ends at 118px and the shared app bar's
   Key pill and launcher start at 186px of a 390px screen - so the waitlist moves into the hero instead, where it
   is the first thing under the lede. Before this it was only in the closing section, at y 5809 of a 6085px
   document: 95% of the way down, behind the whole pinned device section. */
@media (max-width: 600px) { .top nav { display: none; } }
.hero-actions { display: none; margin-top: 0.3rem; }
@media (max-width: 600px) { .hero-actions { display: block; } }

/* ---- the show: the device unrolls while the frame stays pinned ------------------------------------------ */
.show { position: relative; height: 330vh; height: 330svh; }
.frame {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center;
  gap: clamp(0.75rem, 2.5vh, 2rem); padding: clamp(4.5rem, 10vh, 6.5rem) var(--pad) clamp(1.75rem, 5vh, 3rem);
}
.kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hero-copy { display: grid; justify-items: center; gap: 0.7rem; text-align: center; }
h1 { font-family: "Instrument Sans", "Instrument Sans Condensed Fallback", system-ui, sans-serif; font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6rem); font-weight: 600; font-stretch: 88%; line-height: 0.95; letter-spacing: -0.045em; color: var(--head); text-wrap: balance; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.3rem); max-width: 32rem; }

.stage {
  position: relative; container-type: size; aspect-ratio: 3 / 2; align-self: center;
  width: min(100%, 72rem, max(17rem, calc((100svh - 23rem) * 1.5)));
}
.halo {
  position: absolute; left: 50%; top: 50%; width: 170cqh; height: 120cqh; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(246, 160, 77, calc(0.07 + var(--p) * 0.13)), rgba(246, 160, 77, 0) 70%);
}
.floor {
  position: absolute; left: 50%; top: calc(50% + 35cqh); height: 10cqh; pointer-events: none;
  width: calc((var(--r) - var(--l)) * 1.3cqh); translate: calc(-50% + (var(--l) + var(--r)) * 0.5cqh) 0;
  background: radial-gradient(closest-side, rgba(246, 160, 77, 0.32), rgba(246, 160, 77, 0));
}
.device {
  position: absolute; left: 50%; top: 50%; height: 64cqh;
  width: calc((var(--r) - var(--l)) * 1cqh);
  translate: calc(-50% + (var(--l) + var(--r)) * 0.5cqh) -50%;
  border-radius: 4.5cqh;
  background: linear-gradient(145deg, #3a3d44 0%, #131417 36%, #08080a 64%, #26282d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.1),
    inset -1px 0 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 0.45cqh #050506,
    0 2cqh 10cqh -2cqh rgba(246, 160, 77, 0.32),
    0 12cqh 28cqh -12cqh var(--drop);
}
/* The display: dark glass lit from the core (which stays at the slab's center while the sides slide out),
   faint rings around it, and a sheen across the glass. */
.screen {
  position: absolute; inset: 1.3cqh; overflow: hidden; border-radius: 3.3cqh;
  background:
    radial-gradient(40cqh 36cqh at calc(var(--l) * -1cqh - 1.3cqh) 50%, rgba(255, 222, 186, 0.9) 0, rgba(246, 160, 77, 0.7) 9%, rgba(176, 86, 32, 0.42) 30%, rgba(52, 22, 10, 0.25) 55%, rgba(0, 0, 0, 0) 76%),
    radial-gradient(130% 80% at 50% 125%, rgba(70, 52, 140, 0.32), rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, #08090c, #020203);
}
.screen::before {
  content: ""; position: absolute; inset: 0; opacity: 0.6;
  background: repeating-radial-gradient(circle at calc(var(--l) * -1cqh - 1.3cqh) 50%, rgba(255, 255, 255, 0.05) 0 1px, rgba(255, 255, 255, 0) 1px 7cqh);
}
.screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 30%); }
.core {
  position: absolute; left: 50%; top: 50%; width: 2.4cqh; height: 2.4cqh; translate: -50% -50%; border-radius: 50%;
  background: #fff4e8; box-shadow: 0 0 1.6cqh rgba(255, 206, 150, 0.95), 0 0 5cqh rgba(246, 160, 77, 0.7);
}

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 2.5vw, 2.5rem); width: min(100%, 62rem); }
.step { display: grid; gap: 0.25rem; align-content: start; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--faint); transition: color 0.35s, border-color 0.35s; }
.step .n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--core-ink); }
.step b { font-size: 1rem; font-weight: 600; color: var(--muted); transition: color 0.35s; }
.step .t { font-size: 0.88rem; line-height: 1.45; }
.step.is-on { color: var(--muted); border-top-color: var(--core); }
.step.is-on b { color: var(--head); }
/* Phones: one caption at a time, in the same place. */
@media (max-width: 40rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { grid-area: 1 / 1; opacity: 0; transition: opacity 0.35s, color 0.35s, border-color 0.35s; }
  .step.is-on { opacity: 1; }
}
.scroll-hint {
  position: absolute; left: 50%; bottom: 0.6rem; translate: -50% 0; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--faint); opacity: calc(1 - var(--p) * 6); pointer-events: none;
}

/* ---- the sections below ---------------------------------------------------------------------------------- */
main > section:not(.show) { max-width: 72rem; margin: 0 auto; padding: clamp(5rem, 3rem + 8vw, 9rem) var(--pad) 0; }
.head { display: grid; justify-items: center; gap: 1rem; max-width: 46rem; margin: 0 auto; text-align: center; }
h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); font-weight: 600; font-stretch: 90%; line-height: 1; letter-spacing: -0.04em; color: var(--head); text-wrap: balance; }
.head > p:not(.kicker) { color: var(--muted); max-width: 36rem; }
.pair { display: grid; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--line); }
.pair article { display: grid; gap: 0.6rem; align-content: start; padding: 2rem 0; }
.pair article + article { border-top: 1px solid var(--line); }
@media (min-width: 52rem) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair article { padding: 2.5rem 2.5rem 0 0; }
  .pair article + article { border-top: 0; border-left: 1px solid var(--line); padding: 2.5rem 0 0 2.5rem; }
}
.pair h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--head); }
.pair ul { list-style: none; padding: 0; margin-top: 0.8rem; display: grid; gap: 0.6rem; }
.pair li { position: relative; padding-left: 1.3rem; color: var(--muted); }
.pair li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--core); box-shadow: 0 0 10px rgba(246, 160, 77, 0.8); }
.rules { list-style: none; padding: 0; margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); display: grid; border-top: 1px solid var(--line); }
.rules li { display: grid; gap: 0.4rem; padding: 1.6rem 0; }
.rules li + li { border-top: 1px solid var(--line); }
@media (min-width: 48rem) {
  .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rules li { padding: 2rem 2rem 0 0; }
  .rules li + li { border-top: 0; border-left: 1px solid var(--line); padding-left: 2rem; }
}
.rules b { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 600; color: var(--head); }
.rules b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 10px var(--core); }
.rules span { color: var(--muted); }
/* what is already here (Drive, Photos, Docs... on search.axi0.io): one card per product, a link each */
.apps { list-style: none; padding: 0; margin-top: clamp(2rem, 1.6rem + 2vw, 3rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem; }
.apps a { display: grid; gap: 0.3rem; min-height: 44px; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--muted); text-decoration: none; transition: border-color 0.2s; }
.apps a:hover { border-color: var(--core); }
.apps a:focus-visible { outline: 2px solid var(--core-ink, var(--core)); outline-offset: 2px; }
.apps b { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 600; color: var(--head); }
.apps b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 10px var(--core); }
.today .more { margin-top: 1.25rem; color: var(--muted); text-align: center; }
.join { display: grid; justify-items: center; gap: 1rem; text-align: center; padding-bottom: clamp(5rem, 3rem + 8vw, 9rem) !important; }
.join .sub { color: var(--muted); max-width: 34rem; }
.actions { margin-top: 0.75rem; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.75rem 1.6rem; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.btn:hover { background: var(--core); color: #000; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 2rem var(--pad) 2.5rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }
.foot a { color: var(--muted); }

/* ---- less motion: no pinned section, the device shown unrolled, every caption shown -------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root { --p: 1; --l: -53; --r: 53; }
  .show { height: auto; }
  .frame { position: relative; height: auto; min-height: 100svh; }
  .scroll-hint { display: none; }
  .step, .step.is-on { opacity: 1; color: var(--muted); grid-area: auto; }
  .step b { color: var(--head); }
  .steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}
