/* axi0 Side-services (/side-services/): the axi0 family look, as on Examples and Organizations. True black, Instrument
   Sans, the orange core as the one accent; the suite's light paper through /axi0/theme.js. No inline styles in the
   markup (the page runs under style-src 'self'). Fits 390 px: one column of cards, nothing wider than the viewport.
   Motion (side-services.js): cards below the first screen rise in once as they come into view, and a soft spotlight
   follows the pointer over a card. Transform and opacity only, so nothing moves the layout; with reduced motion the
   page is the final state and nothing moves. */
@font-face {
  font-family: "Instrument Sans";
  src: url(/axi0/fonts/instrument-sans-latin-var.woff2) format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
:root {
  --bg: #000; --panel: #0a0a0c; --hover: #141418;
  --line: #1c1c21; --line2: #2a2a31;
  --head: #fff; --ink: #f5f5f7; --text: #d6d6dc; --lede: #a3a3ad; --mute: #8e8e98;
  --core: #f6a04d; --core-ink: #f6a04d; --core-hover: #ffb26a; --on-core: #000; --ok: #7fd49a;
  --spot: rgba(246, 160, 77, .11);
  color-scheme: dark;
}
html[data-axi0-theme="light"] {
  --bg: #f6f2ea; --panel: #fffdf9; --hover: #efe8dc;
  --line: #e6dfd3; --line2: #d3cabb;
  --head: #17140f; --ink: #17140f; --text: #2c2823; --lede: #4f4940; --mute: #675f54;
  --core-ink: #9a4a0a; --ok: #17733f;
  --spot: rgba(246, 160, 77, .17);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-axi0-theme="dark"]) {
    --bg: #f6f2ea; --panel: #fffdf9; --hover: #efe8dc;
    --line: #e6dfd3; --line2: #d3cabb;
    --head: #17140f; --ink: #17140f; --text: #2c2823; --lede: #4f4940; --mute: #675f54;
    --core-ink: #9a4a0a; --ok: #17733f;
    --spot: rgba(246, 160, 77, .17);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 15px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--core-ink); text-underline-offset: 3px; }
::selection { background: rgba(246, 160, 77, .35); }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--core); color: var(--on-core); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--core-ink); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- header (the same block as Tools and Examples; launcher.css sets the shared geometry) ----------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 22px 20px 8px; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; color: var(--head); text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.mark-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 9px var(--core); transform: translateY(-2px); }
.mark-s { color: var(--mute); font-weight: 500; }
@media (max-width: 600px) { .mark { font-size: 22px; } }   /* the phone mark, as on every suite page */
.top-right { display: flex; align-items: center; gap: 14px; }
.me-slot { position: relative; flex: none; width: 36px; height: 36px; }
.me-slot:empty { display: none; }

/* ---- intro ------------------------------------------------------------------------------------------------- */
main { max-width: 1080px; margin: 0 auto; padding: 4px 20px 24px; }
h1 { margin: 22px 0 8px; color: var(--head); font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.lede { max-width: 46em; margin: 0; color: var(--lede); font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; }
.legend div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.legend dt { margin: 0; }
.legend dd { margin: 0; color: var(--mute); font-size: 13.5px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.jump a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px;
  background: var(--panel); color: var(--text); font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s;
}
.jump a:hover { border-color: rgba(246, 160, 77, .7); color: var(--head); }

/* ---- the status chip: words first, the color only repeats them ----------------------------------------------- */
.status {
  display: inline-flex; align-items: center; gap: 6px; flex: none; margin: 0; padding: 3px 10px 3px 8px; border: 1px solid var(--line2);
  border-radius: 999px; color: var(--mute); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.3; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-s="now"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.status[data-s="soon"] { color: var(--core-ink); border-color: color-mix(in srgb, var(--core-ink) 45%, transparent); }
.status[data-s="planned"] { color: var(--mute); }
.status[data-s="planned"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---- groups and cards -------------------------------------------------------------------------------------- */
.group { margin-top: 38px; scroll-margin-top: 16px; }
.group h2, .panel h2 { margin: 0; color: var(--head); font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.group-lede { max-width: 46em; margin: 4px 0 0; color: var(--lede); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 16px; }
.cards.four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }   /* four cards: two by two, never three and one */
.card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
  transition: border-color .2s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 62%);
}
.card:hover { border-color: var(--line2); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { flex: 1 1 auto; margin: 0; min-width: 0; color: var(--head); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.card p { margin: 0; overflow-wrap: anywhere; }
.card .line { color: var(--ink); }
.card .gets-h { margin-top: 4px; color: var(--mute); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gets { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
.gets li { position: relative; padding-left: 16px; overflow-wrap: anywhere; }
.gets li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--line2); }
.card .base { color: var(--mute); font-size: 13.5px; line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { min-width: 0; color: var(--head); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.ask {
  display: inline-flex; flex: none; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px;
  color: var(--core-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.ask::after { content: "\2197"; margin-left: 6px; font-weight: 500; }
.ask[href^="/"]::after { content: "\2192"; }
.ask:hover { border-color: var(--core); background: color-mix(in srgb, var(--core) 10%, transparent); }

/* ---- the panels under the cards ----------------------------------------------------------------------------- */
.panel { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); scroll-margin-top: 16px; }
.panel p { max-width: 52em; margin: 8px 0 0; }
.agency { margin-top: 44px; border-color: color-mix(in srgb, var(--core) 35%, var(--line)); }
.panel .agency-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 9px 18px; border: 1px solid var(--core); border-radius: 999px;
  background: var(--core); color: var(--on-core); font-weight: 600; text-decoration: none; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--core-hover); border-color: var(--core-hover); }
.btn.ghost { background: transparent; color: var(--head); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--core); background: transparent; }
.btn-host { font-weight: 500; opacity: .8; }
.out ul { display: grid; gap: 6px; max-width: 52em; margin: 10px 0 0; padding: 0 0 0 18px; }
.out b { color: var(--head); font-weight: 600; }

/* ---- footer ------------------------------------------------------------------------------------------------- */
.foot { max-width: 1080px; margin: 0 auto; padding: 8px 20px 32px; color: var(--mute); font-size: 13px; line-height: 1.6; }
.foot p { margin: 8px 0 0; }
.foot .clause { max-width: 60em; }

/* ---- motion: set by side-services.js on cards below the first screen only ------------------------------------ */
.card.ss-pending { opacity: 0; transform: translateY(18px); }
.card.ss-pending.ss-in {
  opacity: 1; transform: none;
  transition: opacity .5s ease-out var(--d, 0ms), transform .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), border-color .2s;
}

@media (max-width: 480px) {
  main { padding: 4px 14px 20px; }
  .card { padding: 18px 18px 16px; }
  .panel { padding: 18px 18px; }
  .foot { padding: 8px 14px 28px; }
}
/* the app bar's phone row fits "services" beside the Key pill, not "side-services" (launcher.css would cut it short);
   the heading below keeps the full name */
@media (max-width: 400px) {
  .mark-side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card.ss-pending, .card.ss-pending.ss-in { opacity: 1; transform: none; transition: none; }
  .card, .card::before, .jump a, .ask, .btn { transition: none; }
}
@media print {
  .card.ss-pending { opacity: 1; transform: none; }
  .card::before { display: none; }
}
