/* The Atlas Mind beta page (task 3259): the landing. Oliver's frames of 11 Nov 2026: the Atlas mark top left, "Join The
 * Atlas Mind Beta" and the light Apply Now bar left of centre, the provider marks on the right; Apply Now opens the
 * form over the page (overlay.css). The materials are the app's (atlas-application/desktop/global-ui/styles/tokens and
 * first-run): near-black ground, light type, the first run's light grey bar with its words to the right. The marks'
 * placement is the app sign-in canvas's (website connect.css). A site of its own: nothing loads from atlasmind.co.uk.
 * 12 Nov 2026 (Oliver: tidier, proper spacing and alignment): the admin design spec's scale and radii (4/8/12/16/24/32,
 * control 7, surface 10), one page edge for the mark, the words, the bar and the footer, the marks kept whole inside
 * the window, and a footer with the company and its policies. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* The app's dark set (tokens.css). */
  --bg: #0b0b0b;
  --panel: #161616;
  --border: #242424;
  --text: #f2f2f2;
  --text-body: #c9c9c9;
  --text-dim: #8a8a8a;
  --chip: #d9d9d9;
  --chip-hover: #f5f5f5;
  --chip-press: #cfcfcf;
  --chip-text: #161616;
  --focus: #6fb4ff;
  --danger: #ff7b72;
  --success: #7ee787;
  --warning: #e3b341;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* The spacing scale and radii of the admin design spec (§5). */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --radius-control: 7px;
  --radius-surface: 10px;
  /* One page edge: the mark, the words, the bar and the footer stand on it. */
  --edge: clamp(24px, 8.4vw, 140px);
  --top: clamp(24px, 6vh, 56px);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: #3c3c3c transparent; }
body { margin: 0; min-height: 100svh; position: relative; overflow-x: clip; background: var(--bg); color: var(--text-body);
  font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; caret-color: var(--text); }
[hidden] { display: none !important; }
a { color: var(--text); text-underline-offset: 3px; }
::selection { background: rgb(111 180 255 / 0.32); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.brand { position: absolute; z-index: 2; top: var(--top); left: var(--edge); display: inline-flex; line-height: 0; border-radius: var(--radius-control); }
.brand img { width: 32px; height: auto; }

/* The landing: the heading, one line of what the beta is, and the bar, on the page edge just under the middle. */
.landing { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 100svh; padding: calc(var(--top) + 64px) var(--edge) calc(var(--top) + 64px); transition: opacity var(--dur-slow) var(--ease-out); }
.title { margin: 0; color: var(--text); font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.lede { max-width: 42ch; margin: var(--s3) 0 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
/* The first run's continue (first-run.css .chip-wide): a light grey bar, square corners, the words to the right. */
.chip-wide { display: block; width: 320px; max-width: 100%; min-height: 44px; margin-top: var(--s5); padding: 0 var(--s4);
  border: 0; border-radius: 1px; background: var(--chip); color: var(--chip-text); font: 500 15px/1 var(--font); text-align: right;
  cursor: pointer; transition: background var(--dur-fast) ease-out; }
.chip-wide:hover { background: var(--chip-hover); }
.chip-wide:active { background: var(--chip-press); }

/* While the form is open the landing steps back, as the second frame shows. */
body[data-overlay] .landing { opacity: 0; visibility: hidden; }

/* The footer: the company and its policies, on the same edge, quiet. */
.foot { position: absolute; z-index: 1; left: var(--edge); right: var(--edge); bottom: var(--top); display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s5); color: var(--text-dim); font-size: 12px; line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.foot a { color: var(--text-dim); text-decoration: none; border-radius: 2px; transition: color var(--dur-fast) ease-out; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* The provider marks: the app sign-in canvas's cluster, dimmed, kept whole inside the window and centred on its
 * height, fading at the top and the foot into the dark. */
.art { position: fixed; z-index: 0; top: 50%; right: calc(var(--edge) * 0.5); height: min(84vh, 860px); aspect-ratio: 120 / 141;
  transform: translateY(-50%); pointer-events: none; opacity: 0.85;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0.55) 20%, #000 42%, #000 82%, rgb(0 0 0 / 0.5) 100%);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0.55) 20%, #000 42%, #000 82%, rgb(0 0 0 / 0.5) 100%); }
.providers { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.providers li { position: absolute; transform: translate(-50%, -50%); line-height: 0; animation: drift 14s ease-in-out infinite alternate; }
.providers li:nth-child(2n) { animation-duration: 17s; animation-delay: -4s; }
.providers li:nth-child(3n) { animation-duration: 20s; animation-delay: -9s; }
.providers img { width: 100%; height: auto; }
.p-grok img, .p-openai img, .p-ollama img { filter: grayscale(1) brightness(0.62); }
.p-mistral  { left: 15%;   top: 11%; width: 20.8%; }
.p-claude   { left: 53.3%; top: 12%; width: 30%; }
.p-gemini   { left: 85%;   top: 24%; width: 22%; }
.p-grok     { left: 33.3%; top: 36%; width: 25%; }
.p-openai   { left: 68%;   top: 53%; width: 25%; }
.p-deepseek { left: 23%;   top: 65%; width: 34%; }
.p-ollama   { left: 52%;   top: 84%; width: 10.8%; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }

/* Where the words and the marks would meet, the marks step further back. */
@media (max-width: 1180px) and (min-width: 761px) {
  .art { opacity: 0.35; }
}
/* Narrow windows: the words and the bar take the width; the marks a faint ground behind them; the footer stacks. */
@media (max-width: 760px) {
  .landing { justify-content: flex-start; padding-top: clamp(128px, 24vh, 200px); padding-bottom: 160px; }
  .title { font-size: 30px; }
  .chip-wide { width: 100%; }
  .art { right: auto; left: 50%; height: 100vh; transform: translate(-30%, -50%); opacity: 0.12; }
  .foot { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .foot-links { gap: var(--s2) var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  .providers li { animation: none; }
  .landing, .chip-wide, .foot a { transition: none; }
}
