/* Creago, version 5 (17 Nov 2026): black, white and a hint of very dark purple.
   Shared by the home page, the accounts page and the style library (index.html, accounts.html, library.html).
   The look: a near-black page, white text at a few see-through steps, one heavy type family (Geist) with tight
   headlines, glass cards with no visible borders, every picture in a dark metal frame, and purple only on the main
   button and a few small accents. DESIGN.md, "Version 5", has the reasons. */

:root {
  --bg: #050507;
  --bg-2: #0a0a0d;
  --ink: #f5f4f8;                               /* warm-cool white, never pure grey */
  --t1: rgba(245, 244, 248, .82);               /* body text */
  --t2: rgba(245, 244, 248, .64);               /* captions, labels */
  --t3: rgba(245, 244, 248, .56);               /* fine print: about 5.9:1 on the page, passes AA at 13 px (17 Nov, third review) */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --card: rgba(255, 255, 255, .028);
  --card-2: rgba(255, 255, 255, .05);

  --accent: #a898ff;                            /* small accents as text: ticks, links, dots */
  --accent-dim: rgba(140, 116, 255, .16);
  --btn-top: #4b3ea6;                           /* the main button: a deep, quiet purple (17 Nov, second review) */
  --btn-bottom: #2f2775;
  --btn-glow: rgba(0, 0, 0, .55);                /* a neutral black shadow, never a coloured glow */

  --font: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.2, 1.4, .4, 1);
  --gutter: 20px;
  --col: 1120px;
  --narrow: 720px;
  --sec: 66px;                                  /* about 130 px between two parts on a computer, 88 on a phone */
  --nav-h: 60px;
}
@media (max-width: 720px) {
  :root { --sec: 44px; --gutter: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body { margin: 0; min-height: 100vh; background: var(--bg); font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--t1);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(116, 88, 246, .5); color: #fff; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 15px; }
.skip:focus { top: 12px; }

/* the page's one soft light: a very faint purple haze at the top, then pure black */
.haze { position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; pointer-events: none; overflow: hidden; }
.haze::before { content: ""; position: absolute; left: 50%; top: -420px; width: min(1400px, 160vw); height: 900px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(86, 60, 210, .15), rgba(60, 40, 160, .05) 45%, transparent 70%); }
.haze::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 10%, #000, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 10%, #000, transparent 75%); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.sec { position: relative; padding: var(--sec) 0; }
/* no hairlines between parts: the space and the headlines do the work */

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--t2); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.h1, .h2 { font-weight: 800; color: #fff; text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; letter-spacing: -0.055em; }
.h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -0.05em; }
.h1 .ln, .h2 .ln { display: block; }
/* the second line: a soft grey under the white first line (17 Nov, third review: lavender headlines on every part
   were the biggest block of colour on the site and went against the owner's pick). Only the first screen's
   "Just ask." keeps the quiet lavender (.tone.lav). */
.tone { color: rgba(245, 244, 248, .55); }
.tone.lav { background: linear-gradient(180deg, #f4f1ff 8%, #d9d1ff 55%, #b7aaf3 100%); background-size: 100% 1lh; background-repeat: repeat-y;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em; }
@supports not (height: 1lh) { .tone.lav { background: none; color: #d6ceff; } }
.h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: #fff; }
.lead { font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.6; color: var(--t1); max-width: 560px; text-wrap-style: pretty; }
.small { font-size: 14px; line-height: 1.55; color: var(--t2); text-wrap-style: pretty; }
.nw { white-space: nowrap; text-wrap-mode: nowrap; }
/* small labels: Geist itself, a touch heavier, with even figures (Geist Mono stays for code and requests) */
.mono { font-family: var(--font); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: 44px; }
.head .lead { margin: 0 auto; }
@media (max-width: 720px) { .head { margin-bottom: 28px; gap: 12px; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--spring), box-shadow .3s var(--ease), background-color .2s, color .2s; }
.btn.sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.primary { color: #fff; background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom));
  box-shadow: 0 12px 28px -14px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .06); }
.btn.primary::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); animation: shine 4.2s var(--ease) infinite 1.2s; }
.btn.primary:hover { transform: translateY(-2px); background: linear-gradient(180deg, #5547b4, #362d84); box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(255, 255, 255, .08); }
.btn:active { transform: scale(.97); }
.btn.light { color: #08080a; background: #fff; box-shadow: 0 10px 30px -14px rgba(255, 255, 255, .5); }
.btn.light:hover { transform: translateY(-2px); background: #f1efff; }
.btn.ghost { color: #fff; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .06); }
.btn.ghost:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn .ic { width: 28px; height: 28px; margin-left: -12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.btn .ic svg { width: 11px; height: 11px; fill: currentColor; }
.btn .price { margin-right: -14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .24); font-size: 14px; font-weight: 600; }
.btn svg.arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-18deg); } 40%, 100% { transform: translateX(220%) skewX(-18deg); } }
.link { color: #fff; font-weight: 600; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .3); transition: box-shadow .2s; }
.link:hover { box-shadow: inset 0 -2px 0 var(--accent); }
/* a text link with a finger-sized box (44 px tall): vertical padding on an inline link grows its box and its hit area
   but not the line it sits in; the underline is a text decoration so it stays under the words */
.link.tap { padding: 13px 0; box-shadow: none; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .32); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link.tap:hover { text-decoration-color: var(--accent); }

/* ---------- cards ---------- */
.card { position: relative; border-radius: 22px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .055), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.bezel { position: relative; display: block; border-radius: 20px; padding: 4px; background: linear-gradient(160deg, #303036, #0d0d10 42%, #232328);
  box-shadow: 0 30px 50px -24px #000, inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .6); }
.bezel > .scr { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #0c0c0f; }
.bezel > .scr img, .bezel > .scr video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- the top bar, the phone menu and the footer: css/chrome.css (the same on every page) ---------- */

/* ---------- the toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 12px 18px; border-radius: 999px; background: #fff; color: #08080a; font-size: 15px; font-weight: 600;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tabs (a pill track with a white pill for the chosen one) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: linear-gradient(180deg, #08080a, #131317); box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 6px rgba(0, 0, 0, .6); }
.tab { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--t2); transition: color .25s, background-color .25s, box-shadow .25s; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tab[aria-selected="true"] { background: #fff; color: #09090b; box-shadow: 0 6px 18px -6px rgba(255, 255, 255, .35); }
.tab:not([aria-selected="true"]):hover { color: #fff; }

/* ---------- dialogs ---------- */
dialog { color: var(--t1); }
dialog::backdrop { background: rgba(2, 2, 4, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- reveal: what starts below the screen rises in once ---------- */
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.wait { opacity: 0; transform: translateY(26px); filter: blur(8px); }
.rv:nth-child(2) { transition-delay: .07s; }
.rv:nth-child(3) { transition-delay: .14s; }
.rv:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv.wait { opacity: 1; transform: none; filter: none; }
}
