/*
  Alter Ego shared stylesheet. Dark by default, light through prefers-color-scheme.

  REUSABLE CLASSES (for the sign-in page and any other page)
  .center-page   body class: centres its child on a soft aurora background, full height.
  .card          a centred glass card, max 460px wide. Use inside .center-page. Add .card-wide for 640px.
  .card-logo     the logo row at the top of a card (inline svg mark plus the name).
  .btn           base button. Combine with .btn-primary (gradient, main action) or .btn-secondary (quiet,
                 outlined). Add .btn-block for full width. Works on <a> and <button>.
  .options       list of selectable option tiles (radio style). Markup per tile:
                   <ul class="options" role="radiogroup" aria-label="Where should your memory live?">
                     <li><label class="option">
                           <input type="radio" name="storage" value="onedrive" checked>
                           <span class="option-body">
                             <span class="option-title">OneDrive</span>
                             <span class="option-note">Folder Apps/Alter Ego in your OneDrive.</span>
                           </span>
                         </label></li>
                   </ul>
                 The input is visually hidden but keyboard focusable; the tile shows the checked and
                 focus states. Add disabled to the input for an option that is switched off.
  .muted         secondary text colour. .small smaller text. .stack > * gets vertical rhythm.
  .note          a quiet callout box. .note-warn for a warning tone.
  Colour tokens are CSS variables on :root (--bg, --fg, --muted, --line, --glass, --violet, --cyan, --grad).
  Fonts load from /assets/fonts (self hosted, no third party requests).
*/

@font-face {
  font-family: "Space Grotesk";
  src: url(/assets/fonts/SpaceGrotesk-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/Inter-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --ink: #0B0B1A;
  --paper: #F7F7FB;
  --violet: #7C5CFF;
  --cyan: #22D3EE;
  --grad: linear-gradient(135deg, #7C5CFF, #22D3EE);
  --bg: #0B0B1A;
  --bg-2: #12122B;
  --fg: #F7F7FB;
  --muted: #A1A1B5;
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.085);
  --glass-solid: #15152D;
  --link: #A99BFF;
  --grad-text: linear-gradient(100deg, #8F74FF 0%, #5BA8FF 50%, #22D3EE 100%);
  --on-accent: #05050F;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glow-a: rgba(124, 92, 255, 0.42);
  --glow-b: rgba(34, 211, 238, 0.26);
  --grid: rgba(255, 255, 255, 0.045);
  --code-bg: rgba(0, 0, 0, 0.35);
  --ok: #4ADE80;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 20px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F7FB;
    --bg-2: #EDEDF7;
    --fg: #0B0B1A;
    --muted: #55556E;
    --line: rgba(11, 11, 26, 0.12);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-2: rgba(255, 255, 255, 0.92);
    --glass-solid: #FFFFFF;
    --link: #5236D8;
    --grad-text: linear-gradient(100deg, #6A47F0 0%, #3F7FE8 50%, #0E8FB0 100%);
    --shadow: 0 30px 70px -35px rgba(40, 30, 110, 0.35);
    --glow-a: rgba(124, 92, 255, 0.22);
    --glow-b: rgba(34, 211, 238, 0.22);
    --grid: rgba(11, 11, 26, 0.06);
    --code-bg: rgba(11, 11, 26, 0.06);
    --ok: #15803D;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, samp { font-family: var(--font-mono); font-size: 0.88em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: light) { :focus-visible { outline-color: #5236D8; } }
::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.stack > * + * { margin-top: 1rem; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* buttons */
.btn {
  --pad: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: var(--pad);
  font: 600 1rem/1 var(--font-body);
  border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; position: relative; isolation: isolate;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: var(--on-accent);
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124, 92, 255, 0.9), 0 0 0 4px rgba(124, 92, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-secondary {
  color: var(--fg); background: var(--glass); border-color: var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: var(--glass-2); border-color: rgba(124, 92, 255, 0.6); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand .mark { width: 40px; height: 30px; flex: none; }
.mark { display: block; color: var(--fg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); background: color-mix(in srgb, var(--bg) 62%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: var(--glass); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { min-height: 42px; --pad: 0 16px; font-size: 0.95rem; border-radius: 12px; }
.nav-cta .nav-docs { display: inline-flex; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-cta .nav-docs { display: none; } }

/* hero */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: clip; }
.hero::before { /* grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 25%, transparent 75%);
}
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 820px; height: 620px; left: -10%; top: -22%; background: radial-gradient(closest-side, var(--glow-a), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 760px; height: 600px; right: -12%; top: 6%; background: radial-gradient(closest-side, var(--glow-b), transparent); animation: drift-b 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 600px; height: 420px; left: 30%; top: 38%; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.18), transparent); animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8%, 10%, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-10%, 8%, 0) scale(1.1); } }
.grain::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.hero-copy { text-align: center; max-width: 920px; margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.88rem; font-weight: 500; color: var(--muted); margin-bottom: 26px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.hero h1 { font-size: clamp(2.7rem, 9.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 0.32em; text-wrap: balance; }
.hero h1 .line { display: block; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.32rem); color: var(--muted); max-width: 680px; margin-inline: auto; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-actions .btn { min-height: 54px; --pad: 0 28px; font-size: 1.05rem; border-radius: 16px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* chat mock */
.stage { position: relative; margin: clamp(44px, 7vw, 84px) auto 0; max-width: 840px; }
.stage::before { content: ""; position: absolute; inset: -2px; border-radius: 26px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.7), rgba(34, 211, 238, 0.35) 45%, rgba(255, 255, 255, 0.04) 70%); z-index: -1; filter: blur(0.5px); opacity: 0.8; }
.chat { background: var(--glass-solid); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
@media (prefers-color-scheme: dark) { .chat { background: linear-gradient(180deg, #17173300, #141430), #101024; } }
.chat-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--glass); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.chat-title { font-size: 0.88rem; color: var(--muted); font-weight: 500; flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(34, 211, 238, 0.12); color: var(--fg); border: 1px solid rgba(34, 211, 238, 0.35); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-body { grid-template-columns: minmax(0, 1fr); padding: clamp(16px, 3vw, 28px); display: grid; gap: 14px; min-height: 360px; align-content: start; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 0.98rem; line-height: 1.55; }
.msg.user { justify-self: end; background: var(--grad); color: var(--on-accent); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.ai { justify-self: start; background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.ai b { font-weight: 600; }
.tools { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-self: start; width: min(100%, 520px); }
.chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); font-size: 0.86rem; }
.chip code { font-weight: 600; color: var(--fg); background: rgba(124, 92, 255, 0.18); padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.chip .res { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .st { margin-left: auto; width: 18px; height: 18px; flex: none; position: relative; }
.chip .st::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
.chip.done .st::before { animation: none; border: 0; background: var(--ok); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .step { opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.js .step.on { opacity: 1; transform: none; }
.caption { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 16px; }
.float { display: none; position: absolute; width: 250px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--glass-solid) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow); font-size: 0.82rem; }
.float h4 { font: 600 0.78rem/1 var(--font-mono); letter-spacing: 0; color: var(--muted); margin: 0 0 10px; display: flex; justify-content: space-between; }
.float p { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7; }
.float .hl { color: var(--cyan); }
@media (prefers-color-scheme: light) { .float .hl { color: #0E7490; } }
.float.a { left: -262px; top: 70px; animation: bob 7s ease-in-out infinite alternate; }
.float.b { right: -262px; bottom: 56px; animation: bob 8s ease-in-out infinite alternate-reverse; }
@keyframes bob { to { transform: translateY(-12px); } }
@media (min-width: 1400px) { .float { display: block; } }

/* sections */
section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.eyebrow { display: inline-block; font: 600 0.8rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); margin-bottom: 18px; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.04em; text-wrap: balance; }
.section .sub { color: var(--muted); font-size: 1.12rem; text-wrap: pretty; }

.proof { padding: 22px 0 8px; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; }
.proof-label { width: 100%; text-align: center; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.tag { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.tag.alt { color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; }

/* glass cards */
.gcard { position: relative; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); border: 1px solid transparent;
  background: linear-gradient(var(--glass-solid), var(--glass-solid)) padding-box, linear-gradient(145deg, rgba(124, 92, 255, 0.5), rgba(255, 255, 255, 0.07) 40%, rgba(34, 211, 238, 0.28)) border-box;
  overflow: hidden; }
@media (prefers-color-scheme: dark) { .gcard { background: linear-gradient(rgba(21, 21, 45, 0.86), rgba(15, 15, 34, 0.9)) padding-box, linear-gradient(145deg, rgba(124, 92, 255, 0.5), rgba(255, 255, 255, 0.07) 40%, rgba(34, 211, 238, 0.28)) border-box; } }
.gcard.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.2), transparent 60%); }
.gcard.spot:hover::before { opacity: 1; }
.gcard h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.gcard p { color: var(--muted); margin-bottom: 0; }

.steps3 { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.steps3 .gcard { padding-top: 70px; }
.steps3 .gcard::after { counter-increment: s; content: "0" counter(s); position: absolute; left: clamp(22px, 3vw, 32px); top: 22px; font: 700 2.8rem/1 var(--font-head); letter-spacing: -0.05em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps3 code, .gcard code, .prose code, .faq code { background: var(--code-bg); border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; color: var(--fg); }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .bento { grid-template-columns: repeat(6, 1fr); } .b4 { grid-column: span 4; } .b2 { grid-column: span 2; } .b3 { grid-column: span 3; } .b6 { grid-column: span 6; } }
.mono-box { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--code-bg); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.85; color: var(--muted); overflow-x: auto; white-space: pre; }
.mono-box b { color: var(--fg); font-weight: 600; }
.mono-box .v { color: var(--link); }
.mono-box .c { color: var(--cyan); }
@media (prefers-color-scheme: light) { .mono-box .c { color: #0E7490; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 600 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font-style: normal; font-family: var(--font-head); font-size: 0.9rem; }
.flow { display: grid; gap: 10px; margin-top: 20px; counter-reset: f; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow div { counter-increment: f; padding: 12px 14px 12px 44px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--line); position: relative; font-size: 0.92rem; color: var(--muted); }
.flow div::before { content: counter(f); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 0.75rem/1 var(--font-head); background: var(--grad); color: var(--on-accent); }

.storage { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .storage { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .storage { grid-template-columns: repeat(5, 1fr); } }
.tile { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s, border-color .25s, background .25s; display: flex; flex-direction: column; gap: 10px; }
.tile:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.6); background: var(--glass-2); }
.tile h3 { font-size: 1.25rem; margin: 0; letter-spacing: -0.02em; }
.tile .where { font: 500 0.78rem/1.5 var(--font-mono); color: var(--link); word-break: break-word; }
.tile p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.strip-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.98rem; }

.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.ticks.plain li::before { background: var(--muted); }
.ticks strong { color: var(--fg); font-weight: 600; }
.bignum { font: 700 clamp(3rem, 9vw, 5.5rem)/1 var(--font-head); letter-spacing: -0.05em; }

/* add to claude */
.cta { padding: clamp(28px, 5vw, 56px); border-radius: 30px; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--glass-solid); }
@media (prefers-color-scheme: dark) { .cta { background: #0F0F25; } }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 80% at 15% 0%, var(--glow-a), transparent 70%), radial-gradient(60% 80% at 100% 100%, var(--glow-b), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.1rem, 6vw, 4rem); text-wrap: balance; }
.cta-grid { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 44px; } }
.urlbox { display: flex; align-items: stretch; gap: 8px; padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--code-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.urlbox code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 8px 12px; font-size: clamp(0.72rem, 3.2vw, 0.92rem); word-break: break-all; color: var(--fg); background: none; border: 0; }
.urlbox .btn { min-height: 46px; --pad: 0 18px; border-radius: 12px; }
.ol { list-style: none; counter-reset: o; margin: 0; padding: 0; display: grid; gap: 14px; }
.ol li { counter-increment: o; position: relative; padding-left: 46px; }
.ol li::before { content: counter(o); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 0.9rem/1 var(--font-head); background: var(--glass-2); border: 1px solid var(--line); }
.ol li strong { color: var(--fg); }
.ol li { color: var(--muted); }
.ol code { background: var(--code-bg); border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; color: var(--fg); }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); padding: 0 22px; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(124, 92, 255, 0.55); background: var(--glass-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 28px 20px 0; font: 600 1.08rem/1.35 var(--font-head); letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 0 20px; color: var(--muted); }
.faq .ans p:last-child { margin-bottom: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer h4 { font: 600 0.8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: var(--fg); text-decoration: none; }
.footer a:hover { color: var(--link); text-decoration: underline; }
.footer .tagline { color: var(--muted); max-width: 340px; margin-top: 14px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: 0.88rem; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* docs and legal pages */
.page-head { padding: clamp(40px, 7vw, 84px) 0 clamp(20px, 3vw, 36px); position: relative; overflow: clip; }
.page-head h1 { font-size: clamp(2.3rem, 6.5vw, 4.2rem); letter-spacing: -0.045em; }
.page-head .lead { margin-inline: 0; max-width: 720px; }
.docs { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-bottom: 80px; }
@media (min-width: 980px) { .docs { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: 0.93rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: var(--glass); }
.toc a:hover { color: var(--fg); border-color: rgba(124, 92, 255, 0.6); }
@media (min-width: 980px) {
  .toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
  .toc ul { display: grid; gap: 2px; }
  .toc a { border: 0; background: none; padding: 7px 12px; }
  .toc a:hover { background: var(--glass); }
}
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 2.2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; letter-spacing: -0.02em; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 82%, var(--muted)); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--link); }
.prose strong { color: var(--fg); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 0.8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.prose td:first-child { white-space: nowrap; }
.prose td code { white-space: nowrap; }
.prose pre, .code { position: relative; margin: 1.2em 0; padding: 16px 18px; border-radius: 14px; background: var(--code-bg); border: 1px solid var(--line); overflow-x: auto; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.7; color: var(--fg); }
.prose pre code { background: none; border: 0; padding: 0; }
.note { padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.07); color: var(--fg); margin: 1.4em 0; }
.note p, .note li { color: var(--fg); }
.note > :last-child { margin-bottom: 0; }
.note-warn { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.copyline { display: flex; gap: 8px; align-items: stretch; margin: 1.2em 0; }
.copyline code { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--line); word-break: break-all; display: flex; align-items: center; color: var(--fg); }
.copyline .btn { min-height: 46px; --pad: 0 16px; border-radius: 12px; }
.meta { color: var(--muted); font-size: 0.95rem; }
.opt-card { margin: 1.4em 0 0; }

/* centred card pages (sign in, 404) */
.center-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; position: relative; overflow: hidden; background: var(--bg); }
.center-page::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(50% 50% at 18% 12%, var(--glow-a), transparent 70%), radial-gradient(50% 50% at 88% 90%, var(--glow-b), transparent 70%); }
.center-page > *:not(.skip):not(svg):not(.sr-only) { position: relative; z-index: 1; }
.card { width: 100%; max-width: 460px; padding: clamp(24px, 5vw, 38px); border-radius: 26px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .card { background: rgba(20, 20, 44, 0.72); } }
.card-wide { max-width: 640px; }
.card h1 { font-size: clamp(1.7rem, 5vw, 2.1rem); letter-spacing: -0.035em; margin-bottom: 0.35em; }
.card p { color: var(--muted); }
.card-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font: 600 1.15rem/1 var(--font-head); letter-spacing: -0.02em; }
.card-logo .mark { width: 38px; height: 29px; }
.options { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.option { display: block; position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-body { display: grid; gap: 3px; padding: 14px 18px 14px 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); position: relative; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.option-body::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--muted); transition: border-color .2s, background .2s, box-shadow .2s; }
.option:hover .option-body { border-color: rgba(124, 92, 255, 0.6); background: var(--glass-2); }
.option input:checked + .option-body { border-color: var(--violet); background: rgba(124, 92, 255, 0.12); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.22); }
.option input:checked + .option-body::before { border-color: transparent; background: radial-gradient(circle, var(--fg) 0 3px, transparent 3.5px), var(--grad); }
.option input:focus-visible + .option-body { outline: 2px solid var(--cyan); outline-offset: 3px; }
.option input:disabled + .option-body { opacity: 0.5; cursor: not-allowed; }
.option-title { font: 600 1.05rem/1.3 var(--font-head); letter-spacing: -0.01em; }
.option-note { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.err404 { font: 700 clamp(6rem, 26vw, 11rem)/0.9 var(--font-head); letter-spacing: -0.07em; margin: 0 0 8px; }

/* motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .step { opacity: 1 !important; transform: none !important; }
  .chip .st::before { animation: none; }
}
@media print { .nav, .aurora, .toc, .hero::before { display: none; } body { background: #fff; color: #000; } }

/* small screens */
.brand, .btn, .chat-title { white-space: nowrap; }
@media (max-width: 520px) {
  .nav-cta .nav-docs { display: none; }
  .chat-title { display: none; }
  .chat-bar { justify-content: space-between; }
  .chip .res { white-space: normal; }
  .chip { align-items: flex-start; }
  .chip .st { margin-top: 2px; }
}
.prose, .prose a, .prose li, .prose p { overflow-wrap: anywhere; }
.page-head .aurora { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
