/* AI-OS standalone pages (success, cancel, setup) in direction B, "Blue precision".
 * Tokens mirror design-demos/aios-v4/site.css :root. The homepage deck has its own scroll model
 * (body overflow hidden), so these pages don't load site.css; keep the values in step by hand. */
:root {
  --ground: #f5f6f8;
  --paper: #ffffff;
  --tone: #eaecf0;
  --ink: #0b0c0f;
  --ink-2: #565b66;
  --ink-3: #9196a1;
  --blue: #1f5bff;
  --blue-press: #1448e0;
  --blue-tint: #e9efff;
  --blue-soft: #c9d8ff;
  --night: #0a0b0e;
  --night-2: #131519;
  --night-3: #1b1e24;
  --on-night: #f1f2f4;
  --on-night-2: #8b909b;
  --line-night: rgba(255, 255, 255, 0.07);

  --font: "Geist", ui-sans-serif, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --head: clamp(40px, 1rem + 4.4vw, 72px);
  --lead: clamp(18px, 0.95rem + 0.45vw, 21px);
  --body: clamp(15px, 0.9rem + 0.15vw, 17px);

  --m: 32px;
  --r: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 760px) { :root { --m: 16px; --r: 20px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--ground); color: var(--ink);
  font: 400 var(--body) / 1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
code { font: 500 0.88em var(--mono); background: var(--tone); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

.head { font-size: var(--head); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98; text-wrap: balance; }
.lead { font-size: var(--lead); line-height: 1.4; color: var(--ink-2); letter-spacing: -0.01em; text-wrap: pretty; }
.kicker { font-size: 14px; font-weight: 500; color: var(--blue); letter-spacing: -0.005em; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}
@media (hover: hover) { .btn:hover { background: var(--blue-press); transform: translateY(-1px); } }
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }
.btn-ghost { background: var(--tone); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { background: #dfe2e8; } }
.btn-wide { width: 100%; height: 56px; font-size: 17px; }
.btn.is-disabled { background: var(--tone); color: var(--ink-2); pointer-events: none; }
.link { color: var(--blue); text-decoration: none; }
@media (hover: hover) { .link:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- top ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--m); background: rgba(245, 246, 248, 0.86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
@media (hover: hover) { .top nav a:not(.btn):hover { color: var(--ink); } }
@media (max-width: 760px) { .mark { font-size: 15.5px; gap: 8px; } .hide-phone { display: none; } }

/* the orb and its bead are the one place gradients live (DESIGN.md "The orb") */
.bead { /* taste-skill-ignore */
  width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 34% 30%, #dce7ff 0, #6f98ff 32%, var(--blue) 60%, #0b2a96 100%); /* taste-skill-ignore */
}

/* a small living orb: the four colour fields drift inside the sphere, never still */
.orb {
  --o: 112px;
  position: relative; width: var(--o); height: var(--o); border-radius: 50%; overflow: hidden;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); /* taste-skill-ignore */
}
.orb > i { position: absolute; border-radius: 50%; }
.orb .o-base { inset: 0; background: radial-gradient(circle at 40% 36%, #6f97ff 0%, #2459ff 42%, #0b35d6 72%, #061f8a 100%); } /* taste-skill-ignore */
.orb .o-blob { inset: -25%; filter: blur(calc(var(--o) * 0.08)); animation: orb-spin var(--t, 9s) linear infinite; }
.orb .o-b1 { background: radial-gradient(circle at 30% 32%, #4fd6ff 0, rgba(79,214,255,0) 30%); --t: 7s; } /* taste-skill-ignore */
.orb .o-b2 { background: radial-gradient(circle at 70% 36%, #f2f7ff 0, rgba(242,247,255,0) 24%); opacity: 0.9; --t: 11s; animation-direction: reverse; } /* taste-skill-ignore */
.orb .o-b3 { background: radial-gradient(circle at 58% 76%, #03114f 0, rgba(3,17,79,0) 36%); --t: 13s; } /* taste-skill-ignore */
.orb .o-b4 { background: radial-gradient(circle at 26% 72%, #3d78ff 0, rgba(61,120,255,0) 30%); --t: 9s; animation-direction: reverse; } /* taste-skill-ignore */
.orb .o-ice { inset: 0; background: radial-gradient(circle at 36% 30%, #ffffff 0%, #f1f5ff 40%, #d3e0ff 74%, #a9c2ff 100%); opacity: 0; } /* taste-skill-ignore */
.orb .o-grain {
  inset: 0; opacity: 0.45; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* a finished job: the fields spin up, then one ice flash (DESIGN.md) */
.orb.done .o-blob { animation-duration: calc(var(--t, 9s) / 4); }
.orb.done .o-ice { animation: orb-flash 1.4s var(--ease-out) 0.5s both; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-flash { 0% { opacity: 0; } 30% { opacity: 0.9; } 100% { opacity: 0; } }

/* ---------- footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 26px var(--m) 28px; font-size: 14px; color: var(--ink-2);
}
.foot span { margin-right: auto; }
.foot a { text-decoration: none; }
@media (hover: hover) { .foot a:hover { color: var(--ink); } }
@media (max-width: 760px) { .foot span { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- legal pages (license, privacy, impressum) ---------- */
.legal-page .wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--m); }
.legal-page .hero { padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.legal-page .hero .head { font-size: clamp(36px, 1rem + 3.4vw, 60px); margin: 12px 0 14px; }
.legal-page .ver { font-size: 14px; color: var(--ink-2); }
.legal-page .doc { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 4vw, 44px); margin-bottom: 24px; color: var(--ink-2); }
.legal-page .doc h2 { color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin: 36px 0 10px; }
.legal-page .doc h2:first-child { margin-top: 0; }
.legal-page .doc h3 { color: var(--ink); font-size: 16px; font-weight: 600; margin: 22px 0 6px; }
.legal-page .doc p { margin: 0 0 14px; text-wrap: pretty; }
.legal-page .doc ul { margin: 0 0 16px 20px; display: grid; gap: 8px; }
.legal-page .doc li { padding-left: 4px; }
.legal-page .doc strong, .legal-page .doc b { color: var(--ink); font-weight: 600; }
.legal-page .doc address { font-style: normal; line-height: 1.7; color: var(--ink); }
.legal-page .doc a { color: var(--blue); text-decoration: none; }
@media (hover: hover) { .legal-page .doc a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.legal-page .doc .rule { border: 0; height: 1px; background: var(--tone); margin: 30px 0; }
.legal-page .doc .fine { font-size: 14px; color: var(--ink-3); }
.legal-page .tldr { margin: 0 0 28px; padding: 20px 22px; background: var(--blue-tint); border-radius: 16px; font-size: 15px; color: var(--ink); }
.legal-page .tldr b { color: var(--blue); }
.legal-page .fill { background: var(--blue-tint); color: var(--blue); font-weight: 600; padding: 1px 7px; border-radius: 6px; font-size: 0.92em; }
.legal-page .tblwrap { overflow-x: auto; margin: 6px 0 18px; }
.legal-page table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.legal-page th, .legal-page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--tone); }
.legal-page th { font-size: 13px; font-weight: 500; color: var(--ink); }
.legal-page td { color: var(--ink-2); }
