/* DealForge docs — shared styles (landing + app pages) */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f1a2b;
  --muted: #55657a;
  --faint: #8594a8;
  --border: #e3e9f1;
  --accent: #2563eb;
  --accent-2: #0ea5a4;
  --accent-soft: #eaf1fe;
  --code-bg: #eef2f8;
  --shadow: 0 1px 2px rgba(15, 26, 43, .05), 0 10px 30px -14px rgba(15, 26, 43, .18);
  --shadow-lg: 0 2px 4px rgba(15, 26, 43, .06), 0 28px 60px -20px rgba(15, 26, 43, .28);
  --radius: 16px;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1a;
    --surface: #111827;
    --ink: #e8edf5;
    --muted: #9aa8bc;
    --faint: #6b7a90;
    --border: #1f2a3d;
    --accent: #6ea0ff;
    --accent-2: #2dd4bf;
    --accent-soft: rgba(110, 160, 255, .12);
    --code-bg: #172033;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 28px 60px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Top bar ───────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; }
.brand {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand-mark {
  width: 1.6rem; height: 1.6rem; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff;
}
.nav { display: flex; gap: .25rem; }
.nav a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted);
  padding: .45rem .8rem; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 720px) { .nav a.hide-sm { display: none; } }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .95rem var(--sans); text-decoration: none;
  padding: .75rem 1.25rem; border-radius: 10px; border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #0b2a6b; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-solid { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-solid { color: #06101f; } }

/* ── Hero ──────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(45, 212, 191, .35), transparent 60%),
    radial-gradient(800px 480px at 5% 110%, rgba(110, 160, 255, .35), transparent 60%),
    linear-gradient(160deg, #0b1b44 0%, #0d2a6e 55%, #0b3a7a 100%);
}
.hero::after { /* subtle grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: 5.5rem; padding-bottom: 5.5rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 3.5rem; } .hero-visual { display: none; } }
.eyebrow {
  display: inline-block; font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 1.1rem; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fb6ff, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 52ch; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-visual { position: relative; }
.icon-scene { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-left: auto; color: #fff; }
.globe { position: absolute; left: 50%; top: 50%; width: 142.5%; max-width: none; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .1; pointer-events: none; }
.chip {
  position: absolute; width: 5rem; height: 5rem; border-radius: 22px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  animation: bob 5s ease-in-out infinite;
}
.chip img { width: 58%; height: 58%; }
.chip.sm { width: 3.4rem; height: 3.4rem; border-radius: 16px; }
.chip.md { width: 4.1rem; height: 4.1rem; border-radius: 19px; }
/* Backgrounds: the four app colors match the in-org SLDS standard icons; the rest are picked to suit */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero p.lead strong { color: #fff; font-weight: 700; }

/* ── Sections ──────────────────────────────────── */
section.block { padding: 4.5rem 0; }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .6rem; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.kicker { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }

/* About: separate cards, each glowing in its icon's color */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  position: relative; padding: 2rem 1.9rem 2.1rem; border-radius: 20px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--p) 3%, var(--border));
  box-shadow: 0 1px 2px rgba(15, 26, 43, .04), 0 18px 40px -22px color-mix(in srgb, var(--p) 28%, transparent);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.pillar::before { /* soft glow bleeding from behind the icon */
  content: ""; position: absolute; left: -10%; top: -20%; width: 70%; height: 60%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--p) 12%, transparent), transparent);
  filter: blur(8px); opacity: .7; transition: opacity .22s;
}
.pillar > * { position: relative; }
.pillar:hover {
  transform: translateY(-1px); border-color: color-mix(in srgb, var(--p) 10%, var(--border));
  box-shadow: 0 1px 2px rgba(15, 26, 43, .04), 0 26px 50px -20px color-mix(in srgb, var(--p) 40%, transparent);
}
.pillar:hover::before { opacity: .85; }
.pillar-icon {
  width: 2.9rem; height: 2.9rem; border-radius: 12px; display: grid; place-items: center; background: var(--p);
  margin-bottom: 1.4rem;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--p) 14%, transparent), 0 10px 22px -6px color-mix(in srgb, var(--p) 80%, transparent);
}
.pillar-icon img { width: 58%; height: 58%; }
.pillar h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
.pillar p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.icon-chip { width: 2.5rem; height: 2.5rem; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* ── App tiles ─────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  padding: 1.6rem; border-radius: var(--radius); text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); outline: none; }
.tile .icon-chip { width: 3rem; height: 3rem; border-radius: 13px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.tile h3 { margin: .5rem 0 0; font-size: 1.2rem; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.tile .go { margin-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--accent); display: inline-flex; gap: .35rem; align-items: center; }
.tile .go svg { transition: transform .18s; }
.tile:hover .go svg { transform: translateX(4px); }
.badge-soon { position: absolute; top: 1.2rem; right: 1.2rem; font: 600 .68rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border); padding: .15rem .55rem; border-radius: 999px; }

/* ── CTA band ──────────────────────────────────── */
.band { border-radius: 22px; padding: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; color: #fff; background: linear-gradient(135deg, #0d2a6e, #0b5a8a 60%, #0f8a86); }
.band h2 { margin: 0 0 .25rem; font-size: 1.5rem; letter-spacing: -.02em; }
.band p { margin: 0; color: rgba(255, 255, 255, .8); }

footer.site { padding: 2.5rem 0 3rem; color: var(--faint); font-size: .88rem; border-top: 1px solid var(--border); margin-top: 3rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ── Doc pages ─────────────────────────────────── */
.page-head {
  --p: #2563eb; position: relative; overflow: hidden; color: #fff; padding: 2.4rem 0 2.6rem;
  background:
    radial-gradient(520px 260px at 12% 0%, color-mix(in srgb, var(--p) 55%, transparent), transparent 70%),
    radial-gradient(700px 320px at 95% 120%, rgba(45, 212, 191, .28), transparent 65%),
    linear-gradient(160deg, #0b1b44 0%, #0d2a6e 60%, #0b3a7a 100%);
}
.page-head::after { /* faint grid, same as the landing hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 15%, transparent 75%);
}
.page-head .wrap { position: relative; z-index: 1; }
.crumbs { font-size: .83rem; color: rgba(255, 255, 255, .6); margin-bottom: 1.3rem; }
.crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.ph-row { display: flex; align-items: center; gap: 1.2rem; }
.ph-icon {
  flex: none; width: 4rem; height: 4rem; border-radius: 18px; display: grid; place-items: center; background: var(--p);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--p) 25%, transparent), 0 18px 36px -10px color-mix(in srgb, var(--p) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.ph-icon img { width: 56%; height: 56%; }
.page-head h1 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.page-head p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 1.05rem; max-width: 62ch; }
@media (max-width: 560px) { .ph-icon { width: 3.2rem; height: 3.2rem; border-radius: 14px; } }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0 1rem; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
}
.side { position: sticky; top: 5rem; align-self: start; }
.side .toc { max-height: calc(100vh - 11rem); overflow-y: auto; } /* the dropdown above must not be clipped, so only the outline scrolls */
.toc { font-size: .88rem; }
.guides { position: relative; margin-bottom: 1.2rem; }
.guides-btn {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; cursor: pointer; text-align: left; font: 700 .88rem var(--sans);
  color: var(--ink); background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; padding: .5rem .75rem;
}
.guides-btn:hover, .guides:focus-within .guides-btn { color: var(--accent); }
.guides-chevron { flex: none; color: var(--accent); transition: transform .15s; }
.guides:hover .guides-chevron, .guides:focus-within .guides-chevron { transform: rotate(180deg); }
.guides-icon { width: .8rem; height: .8rem; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.guides-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guides-menu {
  display: none; position: absolute; z-index: 30; top: 100%; left: 0; width: 100%; padding: .35rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.guides:hover .guides-menu, .guides:focus-within .guides-menu { display: block; }
/* Bridge the gap between the button and the menu so the hover does not drop */
.guides-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.5rem; height: .5rem; }
.guides-title { display: block; padding: .3rem .7rem .4rem; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.guides-menu a { display: block; padding: .45rem .7rem; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.guides-menu a:hover { background: var(--accent-soft); color: var(--ink); }
/* The guide you are on, like the app launcher's current app: highlighted, bold, accent bar and a check, not clickable-looking */
.guides-menu a[aria-current="page"], .guides-menu a[aria-current="page"]:hover {
  background: var(--accent-soft); color: var(--ink); font-weight: 700; cursor: default; box-shadow: inset 3px 0 0 var(--accent);
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
}
.guides-menu a[aria-current="page"]::after {
  content: ""; width: .8rem; height: .8rem; flex: none; background: var(--accent);
  -webkit-mask: url(icons/utility/check.svg) center / contain no-repeat; mask: url(icons/utility/check.svg) center / contain no-repeat;
}
.toc a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.toc strong { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .6rem; }
.toc a { display: block; padding: .3rem 0 .3rem .8rem; color: var(--muted); text-decoration: none; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.content { max-width: 74ch; }
.content h2 { font-size: 1.55rem; letter-spacing: -.02em; margin: 2.6rem 0 .6rem; padding-top: .5rem; scroll-margin-top: 5rem; }
.content h3 { font-size: 1.15rem; margin: 1.8rem 0 .4rem; scroll-margin-top: 5rem; }
.content p, .content li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.content code { font: .88em var(--mono); background: var(--code-bg); padding: .12em .4em; border-radius: 5px; }
.content pre { background: var(--code-bg); padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; }
.content pre code { background: none; padding: 0; }
.content table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 1rem 0; }
.content th, .content td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
.content th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.content blockquote { margin: 1.2rem 0; padding: .6rem 1.1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.content blockquote p { margin: .3rem 0; }

/* Screenshots */
figure.shot { margin: 1.6rem 0; }
figure.shot img {
  display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 28px color-mix(in srgb, var(--accent) 16%, transparent), var(--shadow);
  cursor: zoom-in; transition: box-shadow .18s;
}
figure.shot img:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 34px color-mix(in srgb, var(--accent) 24%, transparent), var(--shadow); }
figure.shot figcaption { margin-top: .6rem; font-size: .85rem; color: var(--faint); text-align: center; }
.shot-missing {
  display: grid; place-items: center; gap: .3rem; text-align: center; padding: 2.2rem 1rem;
  border: 2px dashed var(--border); border-radius: 12px; color: var(--faint); background: var(--surface);
}
.shot-missing code { font-size: .8rem; }

.coming { padding: 2.2rem; border: 2px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); background: var(--surface); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(6, 10, 20, .88); backdrop-filter: blur(6px); padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: grid; animation: lb-in .18s ease; }
.lightbox img { width: auto; height: auto; object-fit: contain; max-width: calc(100vw - 7rem); max-height: calc(100vh - 4.25rem); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox .lb-cap { position: absolute; bottom: .75rem; left: 0; right: 0; text-align: center; color: #cfd8e6; font-size: .9rem; padding: 0 2rem; }
.lightbox .lb-close {
  position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border-radius: 50%;
  z-index: 3; border: 2px solid #0b1b44; background: #fff; color: #0b1b44; font-size: 1.85rem; line-height: 1; padding: 0 0 .25rem; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .55); transition: background .15s, transform .15s;
}
.lightbox .lb-nav:hover { background: #1b6ef3; color: #fff; border-color: #fff; transform: translateY(-50%) scale(1.08); }
.lightbox .lb-prev { left: 1.5rem; }
.lightbox .lb-next { right: 1.5rem; }
.lightbox.single .lb-nav { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }


/* About tiles: compact and friendly — icon beside the title, softer corners, a little hop on hover */
.pillars { gap: 1.1rem; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .85rem; row-gap: .7rem;
  padding: 1.15rem 1.3rem 1.3rem; border-radius: 24px;
}
.pillar-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; margin: 0; box-shadow: 0 0 0 5px color-mix(in srgb, var(--p) 9%, transparent), 0 8px 16px -6px color-mix(in srgb, var(--p) 45%, transparent); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pillar:hover .pillar-icon { transform: scale(1.04); }
.pillar h3 { margin: 0; font-size: 1rem; }
.pillar p { grid-column: 1 / -1; font-size: .88rem; line-height: 1.5; }
.pillar::before { left: -6%; top: -30%; width: 55%; height: 80%; }

/* App tiles: same card styling as About, four in a row; border and glow take each app's own icon color */
.pillars.apps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .pillars.apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars.apps { grid-template-columns: 1fr; } }
.pillar.app { grid-template-rows: auto 1fr auto; text-decoration: none; color: inherit; border-color: color-mix(in srgb, var(--p) 4%, var(--border)); }
.pillar.app:hover, .pillar.app:focus-visible { border-color: color-mix(in srgb, var(--p) 12%, var(--border)); outline: none; }
.pillar.app .go {
  grid-column: 1 / -1; justify-self: end; margin-top: .2rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--p) 14%, transparent);
  transition: background .2s, transform .2s;
}
.pillar.app .go::before { /* icon takes the app's color via mask */
  content: ""; width: 1rem; height: 1rem; background: var(--p);
  -webkit-mask: url(icons/forward.svg) center / contain no-repeat; mask: url(icons/forward.svg) center / contain no-repeat;
  transition: background .2s, transform .2s;
}
.pillar.app:hover .go, .pillar.app:focus-visible .go { background: var(--p); }
.pillar.app:hover .go::before, .pillar.app:focus-visible .go::before { background: #fff; }

/* About cards are informational (not links): no hover animation */
.pillar:not(.app):hover {
  transform: none;
  border-color: color-mix(in srgb, var(--p) 3%, var(--border));
  box-shadow: 0 1px 2px rgba(15, 26, 43, .04), 0 18px 40px -22px color-mix(in srgb, var(--p) 28%, transparent);
}
.pillar:not(.app):hover::before { opacity: .7; }
.pillar:not(.app):hover .pillar-icon { transform: none; }

/* Inline UI icons: look like the app's own icon buttons */
.ui-icon {
  display: inline-block; vertical-align: middle; width: 1.9rem; height: 1.9rem; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); position: relative;
}
.ui-icon::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 1rem; height: 1rem; background: #0176d3;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.ui-icon.solid { border-radius: 50%; background: var(--p, #1b96ff); border-color: var(--p, #1b96ff); } /* the app's own accent, as on its Guidance button */
.ui-icon.solid::before { background: #fff; }
.ui-icon.on { background: #f5b800; border-color: #f5b800; }
.ui-icon.on::before { background: #fff; }
.ui-icon.off { background: #9a9a9a; border-color: #9a9a9a; }
.ui-icon.off::before { background: #000; }
.ui-icon.gold::before { background: #f5b800; }
.ui-icon.grey::before { background: #8c8c8c; }
.ui-icon.saved { background: #e8f4fd; border-color: #0176d3; } /* list views: a saved view is applied */
.ui-icon.saved::before { background: #0176d3; }
.ui-icon.unsaved { background: #fef3e2; border-color: #dd7a01; } /* list views: a quick view is applied */
.ui-icon.unsaved::before { background: #dd7a01; }
.ui-icon.saved::after, .ui-icon.unsaved::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid #fff; }
.ui-icon.saved::after { background: #0176d3; }
.ui-icon.unsaved::after { background: #dd7a01; }
@media (prefers-color-scheme: dark) { .ui-icon::before { background: #6ea0ff; } .ui-icon.solid::before, .ui-icon.on::before { background: #fff; } .ui-icon.off::before { background: #000; } .ui-icon.gold::before { background: #f5b800; } .ui-icon.grey::before { background: #8c8c8c; } .ui-icon.saved::before { background: #0176d3; } .ui-icon.unsaved::before { background: #dd7a01; } }
.content table td:first-child .ui-icon + .ui-icon { margin-left: .25rem; }

/* Numbered area guide next to the layout screenshot */
.content ol.areas { list-style: none; counter-reset: area; padding: 0; margin: 1.2rem 0; }
.content ol.areas > li { counter-increment: area; position: relative; padding: .2rem 0 .9rem 2.6rem; }
.content ol.areas > li::before {
  content: counter(area); position: absolute; left: 0; top: .1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; font: 800 .85rem var(--sans); color: #1f1300; background: #f59e0b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 28%, transparent);
}

/* Tables: center cells vertically; keep icon cells compact and on one line */
.content td { vertical-align: middle; }
.content td:first-child:has(.ui-icon) { white-space: nowrap; width: 1%; }
.content .ui-icon { margin: .1rem 0; }
.content .ui-icon + .ui-icon { margin-left: .3rem; }

/* Numbered markers over a screenshot (positions are percentages of the image) */
.shot-frame { position: relative; }
figure.shot .shot-frame img { display: block; }
.shot-marker {
  position: absolute; transform: translate(-50%, -50%); width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center; font: 800 .82rem var(--sans); color: #1f1300; background: #f59e0b;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); pointer-events: none;
}
.shot-missing.has-markers { padding: 0; }
.shot-missing.has-markers .shot-frame { aspect-ratio: 16 / 9; width: 100%; display: grid; place-content: center; gap: .3rem; text-align: center; }
.mark-readout { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 200; background: #0b1b44; color: #fff; padding: .6rem 1rem; border-radius: 10px; font: 600 .95rem var(--mono); box-shadow: var(--shadow-lg); }
.lightbox .lb-frame { position: relative; display: inline-block; }
.lightbox .lb-frame img { display: block; width: auto; height: auto; object-fit: contain; max-width: calc(100vw - 7rem); max-height: calc(100vh - 4.25rem); }

/* Hero: revenue-flavored extras (decorative) — chart cards and currency symbols sit behind the app icons */
.chip { z-index: 2; }
.fcard {
  position: absolute; z-index: 0; border-radius: 16px; padding: .7rem .8rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(6px); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .5);
  animation: bob 6s ease-in-out infinite;
}
.fcard { width: 4.4rem; height: 4.4rem; display: grid; place-items: center; padding: 0; border-radius: 20px; }
.fcard img { width: 56%; height: 56%; opacity: .92; }
.cur {
  position: absolute; z-index: 1; font: 700 1.5rem/1 var(--sans); color: rgba(255, 255, 255, .6);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35); animation: bob 5.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .fcard, .cur, .chip { animation: none; } }


/* Hero icons: scattered across the globe; --x/--y are the item centers as % of the scene (no two overlap) */
.chip, .fcard, .cur {
  left: var(--x, 50%);
  top:  var(--y, 50%);
  translate: -50% -50%;
}
.chip.hub { width: 5.4rem; height: 5.4rem; border-radius: 26px; }
.fcard { width: 3.7rem; height: 3.7rem; border-radius: 18px; }
.cur { font-size: 1.35rem; }
.chip.c1  { background: #1b96ff; animation-delay: 0s; }
.chip.c2  { background: #396547; animation-delay: -1s; }
.chip.c3  { background: #107cad; animation-delay: -2s; }
.chip.c4  { background: #ff5d2d; animation-delay: -3s; }
.chip.c5  { background: #7f8de1; animation-delay: -4s; }
.chip.c6  { background: #88c651; animation-delay: -1.5s; }
.chip.c7  { background: #b781d3; animation-delay: -2.5s; }
.chip.c8  { background: #769ed9; animation-delay: -3.5s; }
.chip.c9  { background: #e0566f; animation-delay: -.5s; }
.chip.c10 { background: #d98e04; animation-delay: -4.5s; }

/* Chart icons: solid colored tiles like the app icons */
.fcard { border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: none; box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fcard img { opacity: 1; }
.fcard.fc1 { background: #14a38b; }
.fcard.fc2 { background: #6d5bd0; }
.fcard.fc3 { background: #0ea5e9; }

/* Screenshots resolve in the browser: image when the file exists, placeholder when it does not */
figure.shot:not(.is-missing) .shot-missing { display: none; }
figure.shot.is-missing .shot-frame img { display: none; }
figure.shot.is-missing .shot-frame { min-height: 8rem; }
figure.shot.is-missing.has-markers .shot-frame { aspect-ratio: 16 / 9; }
figure.shot.is-missing .shot-missing { position: absolute; inset: 0; display: grid; place-content: center; gap: .3rem; text-align: center; }
figure.shot.is-missing figcaption { display: none; }

/* Highlight rectangle over a screenshot ({{shot:...|caption|box@x,y,w,h}}) */
.shot-hl {
  position: absolute; pointer-events: none; border: 3px solid #f59e0b; border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .22), 0 0 18px rgba(245, 158, 11, .45);
}

/* Callout box: <div class="callout warn"> */
.content .callout { margin: 1.4rem 0; padding: .75rem 1rem; font-size: .88rem; line-height: 1.5; border: 1px solid; border-left-width: 4px; border-radius: 10px; }
.content .callout > strong { display: block; margin-bottom: .15rem; } /* the title only; bold inside a sentence stays inline */
.content .callout p { margin: 0; }
.content .callout p + p { margin-top: .6rem; }
.content .callout.warn { background: #fff7e6; border-color: #f5c36b; border-left-color: #f59e0b; color: #5c3a00;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .12), 0 0 22px rgba(245, 158, 11, .32); }
.content .callout.warn strong { color: #8a5300; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .content .callout.warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); color: #f3dcae; box-shadow: 0 0 0 3px rgba(245, 158, 11, .1), 0 0 24px rgba(245, 158, 11, .25); }
  :root:not([data-theme="light"]) .content .callout.warn strong { color: #fbbf24; }
}
