/* Trilbio site. Night Glass from the app (trilbio-macos/docs/design.md), at midnight.
   One loud element: the Mac desktop scene (.mac). Everything else stays quiet. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
}

:root {
  --night: #0a1020;
  --night-2: #0f1829;
  --raise: rgba(255, 255, 255, 0.045);
  --raise-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #edf2fa;
  --text-2: #a7b2c6;
  --text-3: #6f7b93;
  --sky: #7dd3fc;
  --teal: #2dd4bf;
  --violet: #8b5cf6;
  --amber: #fbbf24;
  --green: #34d399;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #bae6fd; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; background: var(--raise-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.38em; }
kbd { white-space: nowrap; }
::selection { background: rgba(125, 211, 252, 0.3); }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--night); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.022em; margin: 0 0 18px; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 78px); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 32, 0.7);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 9px 16px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; background: var(--raise); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; }
@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: rgba(10, 16, 32, 0.97); border-bottom: 1px solid var(--line); }
  .js .nav-links.open { display: flex; }
  .js .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .nav > .btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.btn:not([aria-disabled="true"]):hover { transform: translateY(-1px); }
.btn-primary { background: #f3f7fd; color: #0a1020; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px rgba(125, 211, 252, 0.18); }
.btn-primary:hover { background: #fff; color: #0a1020; }
.btn-glass { background: var(--raise); color: var(--text); border-color: var(--line-2); }
.btn-glass:hover { background: var(--raise-2); color: var(--text); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 18px; height: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--text-3); font-size: 14px; margin: 16px 0 0; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -64px 0 auto; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 420px at 18% 30%, rgba(45, 212, 191, 0.14), transparent 70%),
    radial-gradient(700px 480px at 85% 10%, rgba(139, 92, 246, 0.22), transparent 70%);
}
.hero-copy { text-align: center; max-width: 1000px; margin: 0 auto 56px; }
.hero-copy .lead { margin: 0 auto 32px; }
.hero-copy .cta-row { justify-content: center; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; }

/* ---------- The Mac desktop scene ---------- */
.mac {
  container-type: inline-size;
  position: relative;
  max-width: 1200px; margin: 0 auto;
  padding: 1.3% 1.3% 0;
  background: linear-gradient(#1b2131, #0d1119);
  border-radius: 26px 26px 10px 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 40px 120px rgba(0,0,0,.6), 0 0 160px rgba(125, 211, 252, 0.07);
}
.mac::after { /* the MacBook's lower lip */
  content: ""; display: block; height: 14px; margin: 0 -5%; border-radius: 0 0 22px 22px;
  background: linear-gradient(#2a3041, #141823); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset;
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 1.4cqw 1.4cqw 0 0;
  background:
    radial-gradient(60cqw 45cqw at 12% 92%, rgba(20, 184, 166, 0.55), transparent 70%),
    radial-gradient(55cqw 50cqw at 92% 8%, rgba(124, 58, 237, 0.65), transparent 70%),
    radial-gradient(40cqw 30cqw at 60% 70%, rgba(251, 146, 60, 0.18), transparent 70%),
    linear-gradient(160deg, #141b38, #0b1024 60%, #0a0f1d);
}
.screen .notch { position: absolute; top: 0; left: 50%; width: 15cqw; height: 2.3cqw; transform: translateX(-50%); background: #05070c; border-radius: 0 0 1cqw 1cqw; z-index: 3; }
.menubar {
  position: absolute; inset: 0 0 auto; height: 2.3cqw; z-index: 2;
  display: flex; align-items: center; gap: 1.6cqw; padding: 0 1.4cqw;
  font: 500 1.05cqw/1 var(--font); color: rgba(255,255,255,.92);
  background: rgba(10, 14, 28, 0.35); backdrop-filter: blur(12px);
}
.menubar b { font-weight: 700; }
.menubar .right { margin-left: auto; display: flex; align-items: center; gap: 1.4cqw; }
.menubar svg { width: 1.35cqw; height: 1.35cqw; }
.tray { position: relative; display: flex; align-items: center; gap: .35cqw; padding: .25cqw .5cqw; border-radius: .5cqw; background: rgba(255,255,255,.16); }
.tray svg { width: 1.5cqw; height: 1.5cqw; }
.tray .dot { position: absolute; left: 1.45cqw; top: .2cqw; width: .55cqw; height: .55cqw; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 .12cqw #1a1f33; }
.tray.working .dot { background: var(--green); }

.term {
  position: absolute; left: 4cqw; top: 6.5cqw; width: 54cqw; height: 46cqw;
  background: rgba(13, 17, 28, 0.88); backdrop-filter: blur(20px);
  border-radius: 1.1cqw; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 2cqw 5cqw rgba(0,0,0,.45);
}
.term-bar { height: 2.6cqw; display: flex; align-items: center; gap: .6cqw; padding: 0 1.1cqw; border-bottom: 1px solid rgba(255,255,255,.06); font: 600 .95cqw/1 var(--font); color: rgba(255,255,255,.55); }
.term-bar i { width: .95cqw; height: .95cqw; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin: 0 auto; padding-right: 3.6cqw; }
.term pre { margin: 0; padding: 1.4cqw 1.6cqw; font: 1.12cqw/1.65 var(--mono); color: #cbd5e1; white-space: pre-wrap; }
.term .p { color: #94a3b8; } .term .u { color: #f8fafc; } .term .g { color: var(--green); } .term .a { color: var(--amber); } .term .s { color: var(--sky); } .term .d { color: #64748b; }
.term .box { display: block; border: 1px solid rgba(251, 191, 36, .45); border-radius: .6cqw; padding: .8cqw 1.1cqw; margin-top: .6cqw; }

.panel {
  position: absolute; right: 2.2cqw; top: 2.9cqw; width: min(400px, 34.3cqw); /* 400px = the screenshot's 1x width, so it's never resampled on a big screen */
  filter: drop-shadow(0 2cqw 4cqw rgba(0,0,0,.5));
}
.panel img { width: 100%; }
.js .mac .panel { animation: drop .7s cubic-bezier(.2, .8, .2, 1) .35s backwards; }
.js .mac .term pre { animation: stream 1.5s steps(20, end) .15s backwards; } /* the session prints line by line */
.js .mac .tray .dot { animation: ping 1.2s ease-out 1.7s 2; }
@keyframes stream { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drop { from { transform: translateY(-2.4cqw); } to { transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 .12cqw #1a1f33, 0 0 0 0 rgba(251,191,36,.7); } 100% { box-shadow: 0 0 0 .12cqw #1a1f33, 0 0 0 1.2cqw rgba(251,191,36,0); } }
@media (prefers-reduced-motion: reduce) { .js .mac .panel, .js .mac .term pre, .js .mac .tray .dot { animation: none; } html { scroll-behavior: auto; } }

/* Scroll reveals: js/site.js marks content below the fold. Ends at transform: none, so screenshots stay pixel-sharp. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Small screens: a readable crop instead of a scaled-down desktop. */
@container (max-width: 640px) {
  .screen { aspect-ratio: auto; height: 118cqw; }
  .menubar { height: 7cqw; font-size: 3.4cqw; gap: 4cqw; padding: 0 4cqw; }
  .menubar .menus, .menubar .sys, .screen .notch { display: none; }
  .menubar svg, .tray svg { width: 4.4cqw; height: 4.4cqw; }
  .tray { padding: .8cqw 1.6cqw; border-radius: 1.6cqw; gap: 1cqw; }
  .tray .dot { left: 4.6cqw; top: .6cqw; width: 1.8cqw; height: 1.8cqw; }
  .term { display: none; }
  .panel { left: 6cqw; right: 6cqw; top: 9cqw; width: auto; }
}

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot img { margin-inline: auto; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5)); }
.shot figcaption { color: var(--text-3); font-size: 14px; text-align: center; margin-top: 16px; }
.stage { /* a quiet backdrop like the app's wallpaper, for single app shots */
  border-radius: 24px; padding: clamp(24px, 5vw, 56px);
  background:
    radial-gradient(60% 60% at 15% 100%, rgba(20, 184, 166, 0.28), transparent 70%),
    radial-gradient(60% 70% at 100% 0%, rgba(124, 58, 237, 0.34), transparent 70%),
    #101830;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px var(--line) inset;
  padding: 30px 30px 0; color: inherit; text-decoration: none;
  display: flex; flex-direction: column;
}
a.tile { transition: box-shadow .3s, transform .3s cubic-bezier(.2, .8, .2, 1); }
a.tile:hover { box-shadow: 0 0 0 1px var(--line-2) inset, 0 24px 60px rgba(0, 0, 0, .35); transform: translateY(-4px); }
.tile .art img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
a.tile:hover .art img { transform: translateY(-8px); }
@media (prefers-reduced-motion: reduce) { a.tile, a.tile:hover, a.tile:hover .art img { transform: none; } }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--text-2); margin-bottom: 22px; max-width: 46ch; }
.tile .art { margin-top: auto; display: flex; justify-content: center; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.tile .art img { width: auto; } /* natural 1x size: scaling a screenshot blurs its text */
.tile .art { flex-shrink: 0; }
.r-2 { padding-bottom: 36px; }
.r-2 .art { margin-block: auto; -webkit-mask-image: none; mask-image: none; } /* the tall tile shows the cards whole, centred */
.tile .art.top { align-items: flex-start; height: 290px; overflow: hidden; }
.t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
.r-2 { grid-row: span 2; }
.tile.text-only { padding-bottom: 30px; }
.tile .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; }
.kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }
.kicker.needs i { background: var(--amber); } .kicker.work i { background: var(--green); } .kicker.idle i { background: transparent; box-shadow: 0 0 0 2px var(--text-3) inset; }
@media (max-width: 980px) { .t-4, .t-3, .t-2 { grid-column: span 3; } .r-2 { grid-row: auto; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .t-4, .t-3, .t-2 { grid-column: auto; } }

/* Status words, as in the app */
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.status.needs { color: var(--amber); } .status.needs::before { background: var(--amber); }
.status.working { color: var(--green); } .status.working::before { background: var(--green); }
.status.idle { color: var(--text-2); } .status.idle::before { box-shadow: 0 0 0 2px var(--text-3) inset; }

/* Cards (secondary content) */
.card { background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; border-radius: 18px; padding: 26px; }
.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { box-shadow: 0 0 0 1px var(--line-2) inset; background: var(--raise-2); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 1320px) { .themes { grid-template-columns: repeat(3, 400px); justify-content: center; gap: 24px; margin-inline: -24px; } }
.more { color: var(--sky); font-weight: 600; font-size: 15px; }

/* Feature rows: plain columns, no card chrome */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.points h3 { font-size: 19px; margin-bottom: 8px; }
.points p { color: var(--text-2); margin: 0; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; gap: 28px; } }

/* Spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.spot + .spot { margin-top: 40px; }
.spot.reverse .spot-text { order: 2; }
.spot-text ul { padding-left: 0; list-style: none; margin: 22px 0 0; }
.spot-text li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--text-2); }
.spot-text li::before { content: ""; position: absolute; left: 3px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; gap: 32px; } .spot.reverse .spot-text { order: 0; } }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.privacy h2 { font-size: clamp(34px, 4.4vw, 58px); }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); } /* not flex: inline <code> must stay in the text flow */
.checks li:first-child { padding-top: 0; }
.checks li:first-child::before { top: 2px; }
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 22px; height: 22px; border-radius: 50%; background: rgba(52, 211, 153, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.checks.no li::before { background: rgba(248, 113, 113, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/13px no-repeat; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; padding: 40px; }
.plan .btn { align-self: flex-start; }
.plan h2 { font-size: 26px; margin-bottom: 4px; }
.plan.pro { background: linear-gradient(180deg, rgba(125, 211, 252, 0.11), rgba(139, 92, 246, 0.06)); box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.4) inset; }
.price { font: 700 54px/1 var(--display); letter-spacing: -0.03em; margin: 14px 0 6px; }
.price small { font: 500 16px var(--font); color: var(--text-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--text-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.chip { display: inline-block; vertical-align: middle; font: 600 13px/1 var(--font); padding: 6px 10px; border-radius: 999px; background: rgba(125, 211, 252, 0.15); color: var(--sky); margin-left: 8px; }
.price-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.strip-more { margin: 24px 0 0; }
.price-strip .card { display: flex; flex-direction: column; justify-content: center; }
.price-strip .price { font-size: 40px; margin: 0 0 6px; }
@media (max-width: 860px) { .price-strip { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line) inset; background: var(--raise); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-2); font-weight: 600; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green); font-weight: 600; }
td.no { color: var(--text-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; } /* leading-aligned like everything else; capped for line length */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 600 19px/1.35 var(--display); letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details > div { padding: 0 40px 22px 0; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Steps (a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--display); background: rgba(125, 211, 252, 0.14); color: var(--sky); }
.steps h3, .prose .steps h3 { font-size: 19px; margin: 6px 0 6px; }
.steps p { margin: 0; color: var(--text-2); }

/* Docs (guide, legal) */
.doc { display: grid; grid-template-columns: 210px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc p { font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { color: var(--text-3); text-decoration: none; display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--sky); }
.prose { max-width: 720px; }
.prose h2 { font-size: 30px; margin: 72px 0 20px; }
.prose h2:first-child { margin-top: 0; }
/* Each topic starts below a hairline, with room on both sides. Topics inside a .split column just get space. */
.prose > h2:not(:first-child), .prose > .split:has(> div > h2:first-child) { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.prose h3 { margin: 40px 0 10px; font-size: 21px; }
.prose ul, .prose ol:not(.steps) { padding-left: 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose .shot, .prose .stage { margin: 32px 0; }
/* Text beside its screenshot (guide). The screenshot keeps its 1x width; the text takes the rest. */
.prose:has(.split) { max-width: none; }
.prose:has(.split) > :not(.split) { max-width: 720px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; margin-top: 64px; }
.split + .split { margin-top: 48px; }
h2 + .split { margin-top: 32px; }
.split > div > :first-child, .split > .steps > li:first-child h3 { margin-top: 0; }
.prose .split > .shot { margin: 0; }
.split > .steps > li:first-child { padding-top: 0; }
.split > .steps > li:first-child::before { top: -4px; }
@media (max-width: 1199px) { .split { grid-template-columns: 1fr; gap: 28px; } .prose:has(.split) { max-width: 720px; } }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

.callout { max-width: 860px; border-radius: 16px; padding: 18px 22px; color: var(--text-2); background: rgba(125, 211, 252, 0.07); box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.3) inset; }
.callout strong { color: var(--sky); }

/* Inner page head */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); max-width: 16ch; }
.page-head.with-scene { padding-bottom: 0; }
.page-head.center { text-align: center; }
.page-head.center h1, .page-head.center .lead { margin-inline: auto; }
.page-head.center .crumbs ol { justify-content: center; }
.wrap.mid { width: min(920px, 100% - 40px); }
.pay-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 80px; align-items: center; }
.pay-split .lead { max-width: 52ch; }
.pay-split h2 { font-size: clamp(30px, 3.4vw, 42px); }
@media (max-width: 860px) { .pay-split { grid-template-columns: 1fr; gap: 32px; } }
.page-head.with-scene .mac { margin-top: 48px; }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }

/* Closing CTA */
.final { text-align: center; padding-bottom: 72px; }
.final .inner { padding: clamp(40px, 7vw, 88px) 24px; border-radius: 28px; background: radial-gradient(70% 90% at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%), radial-gradient(60% 80% at 50% 100%, rgba(45, 212, 191, 0.16), transparent 70%), var(--night-2); box-shadow: 0 0 0 1px var(--line) inset; }
.final .cta-row { justify-content: center; }
.final img.mark { width: 84px; height: 84px; margin: 0 auto 26px; filter: drop-shadow(0 16px 40px rgba(124, 58, 237, 0.45)); }
.final .lead { margin: 0 auto 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font: 600 14px var(--font); letter-spacing: 0; color: var(--text-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Works with: available agents lit, coming ones dimmed */
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.works li { font-size: 14px; padding: 7px 13px; border-radius: 999px; color: var(--text-3); box-shadow: 0 0 0 1px var(--line) inset; }
.works li.on { color: var(--text); background: var(--raise-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.works li.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }
.works small { font-size: 12px; color: var(--text-3); margin-left: 4px; }
