/* Xee inner pages.
   One system for every page under the home page: a mono address crumb, a Satoshi headline, an "ask the agent"
   prompt that says what the agent does on that page, and the dashboard's own cards, lines and phones. */

:root {
  --pg-ink: #171717;
  --pg-ink2: #404040;
  --pg-muted: #737373;
  --pg-faint: #858585;
  --pg-line: #e8e8e8;
  --pg-surface: #fafafa;
  --pg-graphite: #1f1f22;
  --pg-subs: #8b5cf6;
  --pg-tests: #16a34a;
  --pg-aso: #ea580c;
  --pg-ads: #3b82f6;
  --pg-gutter: clamp(20px, 4vw, 56px);
  --pg-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pg-num: "Rowan", ui-serif, Georgia, serif;
}

.pg { color: var(--pg-ink); }
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg a { color: inherit; }
.pg :focus-visible { outline: 2px solid var(--pg-ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- hero ---------- */
.pg-hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pg-gutter) clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(0 0 0 / 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.pg-hero > * { position: relative; }
.pg-hero--left { text-align: left; }
.pg-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin: 0 0 22px;
  padding: 0 12px;
  border: 1px solid var(--pg-line);
  border-radius: 99px;
  background: #fff;
  color: var(--pg-muted);
  font: 500 12.5px/1 var(--pg-mono);
  letter-spacing: 0;
  text-decoration: none;
}
.pg-crumb b { color: var(--pg-ink); font-weight: 500; }
.pg-crumb i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--pg-subs)); }
.pg-hero h1 {
  max-width: 17ch;
  margin: 0 auto;
  font-size: clamp(2.25rem, 1.4rem + 2.9vw, 3.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.pg-hero--left h1 { margin: 0; }
.pg-lede {
  max-width: 40rem;
  margin: 18px auto 0;
  color: #525252;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: balance;
}
.pg-hero--left .pg-lede { margin-left: 0; }
.pg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pg-hero--left .pg-actions { justify-content: flex-start; }
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--pg-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.pg-btn:hover { background: var(--pg-surface); border-color: #d4d4d4; }
.pg-btn--dark { border-color: #000; background: #000; color: #fff !important; }
.pg-btn--dark:hover { background: #262626; border-color: #262626; }

/* the signature: what you would ask the agent on this page */
.pg-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 560px);
  margin: 30px auto 0;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 36px -24px rgb(0 0 0 / 0.25);
  text-align: left;
}
.pg-hero--left .pg-ask { margin-left: 0; }
.pg-ask svg { flex: none; width: 16px; height: 16px; color: var(--c, var(--pg-subs)); }
.pg-ask span { flex: 1; min-width: 0; color: var(--pg-ink2); font-size: 14.5px; }
.pg-ask span::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--pg-ink); animation: pg-caret 1s steps(1) infinite; }
.pg-ask kbd { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--pg-ink); color: #fff; font: 600 13px/1 var(--pg-mono); }
.pg-ask small { flex: none; color: var(--pg-faint); font: 500 11px/1 var(--pg-mono); }
@keyframes pg-caret { 50% { opacity: 0; } }

/* ---------- sections ---------- */
.pg-sec { padding: clamp(48px, 7vw, 88px) var(--pg-gutter); }
.pg-sec--tint { background: var(--pg-surface); }
.pg-head { max-width: 44rem; margin: 0 0 clamp(28px, 4vw, 44px); }
.pg-head--center { margin-inline: auto; text-align: center; }
.pg-eyebrow { margin: 0 0 12px; color: var(--c, var(--pg-muted)); font: 500 12px/1 var(--pg-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.pg-head h2, .pg-h2 { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.pg-head p { margin: 12px 0 0; color: var(--pg-muted); font-size: 16.5px; line-height: 1.55; }
.pg-h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.pg-p { margin: 8px 0 0; color: var(--pg-muted); font-size: 15px; line-height: 1.55; }

.pg-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
a.pg-card:hover { border-color: #d4d4d4; box-shadow: 0 14px 30px -22px rgb(0 0 0 / 0.35); transform: translateY(-1px); }
.pg-card .pg-p { flex: 1; }
.pg-more { margin-top: 16px; color: var(--pg-ink); font-size: 14px; font-weight: 500; }
.pg-more::after { content: " →"; transition: margin 150ms ease; }
a.pg-card:hover .pg-more::after { margin-left: 3px; }
.pg-tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--pg-subs)) 12%, #fff);
  color: var(--c, var(--pg-subs));
}
.pg-tile svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* a row: words on one side, a dashboard fragment on the other */
.pg-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pg-row + .pg-row { margin-top: clamp(56px, 8vw, 96px); }
.pg-row--flip > :first-child { order: 2; }
.pg-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pg-list li { position: relative; padding-left: 26px; color: var(--pg-ink2); font-size: 15px; line-height: 1.5; }
.pg-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--c, var(--pg-subs)) 14%, #fff); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 14px var(--c, var(--pg-subs)); }

/* ---------- dashboard fragments (the app's own card, lines and type) ---------- */
.dx {
  --c: var(--pg-subs);
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 30px 60px -36px color-mix(in srgb, var(--c) 55%, rgb(0 0 0 / 0.3));
  font-family: Inter, var(--font-sans), system-ui, sans-serif;
  font-size: 13px;
}
.dx-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid #eee; color: var(--pg-muted); font: 500 11.5px/1 var(--pg-mono); }
.dx-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e5e5e5; }
.dx-bar i:nth-child(3) { margin-right: 6px; }
.dx-bar b { color: var(--pg-ink); font-weight: 500; }
.dx-body { padding: 16px; }
.dx-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.dx-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font-size: 11.5px; font-weight: 600; }
.dx-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; }
.dx-row:first-of-type { border-top: 0; }
.dx-row small { color: var(--pg-muted); font-size: 12px; }
.dx-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.dx-up { color: #16a34a; font-weight: 600; font-size: 12px; }
.dx-down { color: #dc2626; font-weight: 600; font-size: 12px; }
.dx-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dx-bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; margin-top: 12px; }
.dx-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--c) 75%, #fff); }
.dx-bars i:last-child { background: var(--c); }
.dx-meter { height: 6px; border-radius: 99px; background: #f1f1f1; overflow: hidden; }
.dx-meter b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c); }
.dx-agent { display: flex; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); border-radius: 12px; background: color-mix(in srgb, var(--c) 5%, #fff); }
.dx-agent svg { flex: none; width: 16px; height: 16px; color: var(--c); }
.dx-agent p { margin: 0; color: var(--pg-ink2); font-size: 12.5px; line-height: 1.5; }
.dx-agent b { color: var(--pg-ink); }
.dx-btns { display: flex; gap: 6px; margin-top: 10px; }
.dx-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid #e5e5e5; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 600; }
.dx-btn--dark { border-color: var(--pg-ink); background: var(--pg-ink); color: #fff; }

/* ---------- phones (iPhone Pro Max proportions, as in the dashboard) ---------- */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  aspect-ratio: 440 / 956;
  padding: 16% 9% 8%;
  border-radius: 13% / 6%;
  background: var(--bg, #fff);
  color: var(--fg, var(--pg-ink));
  box-shadow: 0 0 0 5px #1d1d1f, 0 0 0 6px #3a3a3c, 0 30px 50px -28px rgb(0 0 0 / 0.5);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(8px, 0.9vw, 11px);
  overflow: hidden;
}
.ph::before { content: ""; position: absolute; top: 2.4%; left: 50%; width: 30%; height: 3.4%; border-radius: 99px; background: #1d1d1f; transform: translateX(-50%); }
.ph h4 { margin: 0; font-size: 1.75em; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.ph p { margin: 0; opacity: 0.72; line-height: 1.4; }
.ph-plan { display: flex; justify-content: space-between; align-items: center; padding: 0.9em 1em; border: 1.5px solid currentColor; border-radius: 0.9em; opacity: 0.55; font-weight: 600; }
.ph-plan.on { opacity: 1; border-color: var(--ac, #8b5cf6); box-shadow: inset 0 0 0 1px var(--ac, #8b5cf6); }
.ph-plan em { font-style: normal; padding: 0.15em 0.5em; border-radius: 99px; background: var(--ac, #8b5cf6); color: #fff; font-size: 0.8em; }
.ph-cta { display: grid; place-items: center; height: 3.6em; margin-top: auto; border-radius: 99px; background: var(--ac, #8b5cf6); color: #fff; font-weight: 700; }
.ph-small { text-align: center; opacity: 0.5; font-size: 0.85em; }
.ph-art { flex: 0 0 34%; border-radius: 1em; background: var(--art, linear-gradient(160deg, #ede9fe, #c4b5fd)); }
.ph-check { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55em; }
.ph-check li::before { content: "✓"; margin-right: 0.6em; color: var(--ac, #8b5cf6); font-weight: 800; }

/* ---------- code ---------- */
.pg-code { overflow: hidden; border-radius: 14px; background: var(--pg-graphite); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 24px 48px -30px rgb(0 0 0 / 0.5); }
.pg-code__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid rgb(255 255 255 / 0.07); color: #a1a1aa; font: 500 12px/1 var(--pg-mono); }
.pg-code__bar span { flex: 1; }
.pg-copy { height: 26px; padding: 0 10px; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 7px; background: transparent; color: #e4e4e7; font: 500 11.5px/1 var(--pg-mono); cursor: pointer; }
.pg-copy:hover { background: rgb(255 255 255 / 0.07); }
.pg-code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; color: #e4e4e7; font: 400 13px/1.65 var(--pg-mono); }
.pg-code .k { color: #c4b5fd; }
.pg-code .s { color: #86efac; }
.pg-code .c { color: #71717a; }
.pg-code .f { color: #93c5fd; }

/* ---------- chips, tables, faq ---------- */
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pg-chip { height: 32px; padding: 0 13px; border: 1px solid var(--pg-line); border-radius: 99px; background: #fff; color: var(--pg-ink2); font: 500 13.5px/1 var(--font-sans, inherit); cursor: pointer; transition: background-color 150ms, border-color 150ms, color 150ms; }
.pg-chip:hover { border-color: #d4d4d4; }
.pg-chip[aria-pressed="true"] { border-color: var(--pg-ink); background: var(--pg-ink); color: #fff; }
.pg-search { width: min(100%, 320px); height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid var(--pg-line); border-radius: 10px; font: inherit; font-size: 14px; }
.pg-search:focus { outline: 2px solid var(--pg-ink); outline-offset: 1px; }

.pg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pg-table th, .pg-table td { padding: 13px 12px; border-bottom: 1px solid var(--pg-line); text-align: left; vertical-align: top; }
.pg-table thead th { position: sticky; top: 64px; background: #fff; color: var(--pg-muted); font: 500 12px/1.2 var(--pg-mono); letter-spacing: 0.03em; text-transform: uppercase; }
.pg-table tbody th { font-weight: 500; }
.pg-table td { color: var(--pg-ink2); }
.pg-table .yes { color: var(--pg-tests); font-weight: 600; }
.pg-table .no { color: var(--pg-faint); }
.pg-tablewrap { overflow-x: auto; border: 1px solid var(--pg-line); border-radius: 16px; }
.pg-tablewrap .pg-table tr:last-child > * { border-bottom: 0; }

.pg-faq { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--pg-line); }
.pg-faq details { border-bottom: 1px solid var(--pg-line); }
.pg-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 2px; font-size: 16.5px; font-weight: 500; list-style: none; cursor: pointer; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; color: var(--pg-muted); font: 400 20px/1 var(--pg-mono); transition: transform 200ms ease; }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq details p { margin: -4px 0 18px; padding-right: 32px; color: var(--pg-muted); font-size: 15px; line-height: 1.6; }

/* a page's own FAQ section wears the home page's design: a large title, then hairline rows across the frame */
.pg-faqsec { padding: clamp(3rem, 6vw, 5rem) 24px 0; }
.pg-faqsec + .section-rule { display: none; }
.pg-faqsec .faq-head p { margin: 0; color: #6b7280; font-size: 0.875rem; font-weight: 500; }
.pg-faqsec .faq-head h2 { max-width: 20ch; margin: 0.625rem 0 0; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.pg-faqsec .pg-faq { max-width: none; margin: 2.5rem -24px 0; border-top: 0; border-block: 1px solid #e5e7eb; }
.pg-faqsec .pg-faq details { border-bottom: 0; }
.pg-faqsec .pg-faq details + details { border-top: 1px solid #e5e7eb; }
.pg-faqsec .pg-faq summary { align-items: center; gap: 1.5rem; min-height: 4.25rem; padding: 1rem 24px; font-size: 1.0625rem; letter-spacing: -0.01em; transition: background-color 150ms ease; }
.pg-faqsec .pg-faq summary:hover { background: #fafafa; }
.pg-faqsec .pg-faq summary:focus-visible { outline-offset: -2px; border-radius: 0; }
.pg-faqsec .pg-faq summary::after { content: ""; flex: none; width: 0.625rem; height: 0.625rem; margin-right: 0.25rem; border-right: 1.5px solid #6b7280; border-bottom: 1.5px solid #6b7280; transform: translateY(-2px) rotate(45deg); }
.pg-faqsec .pg-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pg-faqsec .pg-faq details p { max-width: 46rem; margin: -0.25rem 0 0; padding: 0 24px 1.5rem; color: #525252; font-size: 1rem; text-wrap: pretty; }
.pg-faqsec .pg-faq details p:not(:last-of-type) { padding-bottom: 0.75rem; }
.pg-faqsec .pg-faq details p + p { margin-top: 0; }
.pg-faqsec .cp-note { max-width: none; margin: 0; padding: 14px 0 18px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .pg-faqsec .pg-faq summary, .pg-faqsec .pg-faq summary::after { transition: none; } }

/* ---------- empty states, notes ---------- */
.pg-empty { display: grid; justify-items: center; gap: 10px; max-width: 34rem; margin: 0 auto; padding: 48px 28px; border: 1px dashed #d4d4d4; border-radius: 18px; background: #fff; text-align: center; }
.pg-empty .pg-p { margin: 0; }
.pg-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; color: #78350f; font-size: 14px; line-height: 1.5; }
.pg-note b { color: #451a03; }

/* ---------- prose (legal, posts) ---------- */
.pg-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pg-toc { position: sticky; top: 88px; display: grid; gap: 2px; font-size: 13.5px; }
.pg-toc b { margin-bottom: 8px; color: var(--pg-muted); font: 500 11.5px/1 var(--pg-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.pg-toc a { padding: 5px 10px; border-radius: 8px; color: var(--pg-ink2); text-decoration: none; }
.pg-toc a:hover { background: var(--pg-surface); color: var(--pg-ink); }
.pg-prose { max-width: 44rem; color: var(--pg-ink2); font-size: 16px; line-height: 1.7; }
.pg-prose h2 { margin: 2.2em 0 0.6em; color: var(--pg-ink); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; scroll-margin-top: 90px; }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose h3 { margin: 1.6em 0 0.4em; color: var(--pg-ink); font-size: 17px; font-weight: 500; }
.pg-prose p, .pg-prose ul, .pg-prose ol { margin: 0 0 1em; }
.pg-prose li { margin: 0.3em 0; }
.pg-prose code { padding: 1px 5px; border-radius: 5px; background: #f4f4f5; font: 13.5px var(--pg-mono); color: var(--pg-ink); }
.pg-prose a { text-decoration: underline; text-decoration-color: #d4d4d4; text-underline-offset: 3px; }
.pg-prose a:hover { text-decoration-color: var(--pg-ink); }
.pg-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; color: var(--pg-muted); font: 500 12.5px/1.4 var(--pg-mono); }

/* reveal on scroll (pages.js adds .in) */
.pg-rv { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms cubic-bezier(0.23, 1, 0.32, 1); }
.pg-rv.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .pg-row, .pg-doc { grid-template-columns: 1fr; }
  .pg-row--flip > :first-child { order: 0; }
  .pg-toc { position: static; grid-auto-flow: row; }
  .pg-search { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-rv { opacity: 1; transform: none; transition: none; }
  .pg-ask span::after { animation: none; }
  a.pg-card:hover { transform: none; }
}

.pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- pricing ---------- */
.pr2-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr2-plan { --c: var(--pg-tests); position: relative; display: flex; flex-direction: column; padding: 24px 22px; border: 1px solid var(--pg-line); border-radius: 18px; background: #fff; }
.pr2-plan h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.pr2-for { min-height: 3em; margin: 6px 0 0; color: var(--pg-muted); font-size: 14px; line-height: 1.5; }
.pr2-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 0; }
.pr2-price span { font: 400 46px/1 var(--pg-num); letter-spacing: -0.02em; }
.pr2-price small { color: var(--pg-muted); font-size: 13.5px; }
.pr2-band { margin: 8px 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--pg-line); color: var(--pg-ink2); font: 500 12.5px/1.4 var(--pg-mono); }
.pr2-plan .pg-btn { justify-content: center; }
.pr2-plan .pg-list { margin-top: 20px; }
.pr2-plan .pg-list li { font-size: 14px; }
.pr2-plan--pick { border-color: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 10%, transparent), 0 30px 60px -40px color-mix(in srgb, var(--c) 70%, #000); }
.pr2-tag { position: absolute; top: -11px; left: 22px; padding: 4px 10px; border-radius: 99px; background: var(--c); color: #fff; font: 600 11px/1 var(--pg-mono); }
.pr2-yearly { margin: 18px 0 0; color: var(--pg-muted); font-size: 14px; text-align: center; }

.pr2-calc { padding: 26px; border: 1px solid var(--pg-line); border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.35); }
.pr2-calc__label { display: flex; justify-content: space-between; align-items: baseline; color: var(--pg-muted); font: 500 12.5px/1 var(--pg-mono); text-transform: uppercase; letter-spacing: 0.03em; }
.pr2-calc__label output { color: var(--pg-ink); font: 400 34px/1 var(--pg-num); letter-spacing: -0.02em; text-transform: none; }
.pr2-calc input[type="range"] { --k: 50%; width: 100%; height: 28px; margin: 18px 0 4px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pr2-calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pg-ink) var(--k), #e9e9e9 var(--k)); }
.pr2-calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--pg-ink) var(--k), #e9e9e9 var(--k)); }
.pr2-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 5px solid #fff; border-radius: 50%; background: var(--pg-ink); box-shadow: 0 0 0 1px #d4d4d4, 0 4px 10px rgb(0 0 0 / 0.2); }
.pr2-calc input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 5px solid #fff; border-radius: 50%; background: var(--pg-ink); box-shadow: 0 0 0 1px #d4d4d4; }
.pr2-calc__ticks { display: flex; justify-content: space-between; color: var(--pg-faint); font: 500 11px/1 var(--pg-mono); }
.pr2-calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pr2-calc__out > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--pg-surface); }
.pr2-calc__out small { color: var(--pg-muted); font: 500 11.5px/1 var(--pg-mono); text-transform: uppercase; letter-spacing: 0.03em; }
.pr2-calc__out b { font-size: 20px; font-weight: 500; }
.pr2-calc__out span { color: var(--pg-muted); font-size: 13.5px; }
.pr2-calc__cut { color: #b91c1c; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.pr2-calc__save { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #f0fdf4; color: #166534; font-size: 14.5px; font-weight: 500; text-align: center; }
.pr2-table th:not(:first-child), .pr2-table td { text-align: center; }
.pr2-table tbody th { width: 38%; }
.pr2-group th { padding-top: 22px; background: var(--pg-surface); color: var(--pg-ink); font: 500 12px/1 var(--pg-mono) !important; letter-spacing: 0.03em; text-transform: uppercase; text-align: left !important; }
.pg-book { padding: clamp(32px, 5vw, 56px) var(--pg-gutter) 0; scroll-margin-top: 72px; }
@media (max-width: 1080px) { .pr2-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } }
@media (max-width: 600px) { .pr2-plans { grid-template-columns: 1fr; } .pr2-for { min-height: 0; } }
.pr2-calc__ticks { position: relative; height: 12px; margin: 0 11px; }
.pr2-calc__ticks span { position: absolute; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.pr2-calc__ticks span:first-child { transform: translateX(-11px); }
.pr2-calc__ticks span:last-child { transform: translateX(calc(-100% + 11px)); }

/* ---------- skills ---------- */
.sk-name { display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 4px 8px; border-radius: 7px; background: color-mix(in srgb, var(--c) 10%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font: 500 12px/1 var(--pg-mono); }
.sk-ask { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--pg-line); color: var(--pg-ink2); font: 500 12.5px/1.4 var(--pg-mono); }
.sk-run { max-width: 46rem; margin: 0 auto; }

/* ---------- iOS SDK steps (a real sequence, so numbered) ---------- */
.io-steps { margin: 0; padding: 0; list-style: none; counter-reset: io; display: grid; gap: clamp(28px, 4vw, 44px); }
.io-steps li { counter-increment: io; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.io-steps li > div:first-child { position: relative; padding-left: 52px; }
.io-steps li > div:first-child::before { content: counter(io); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--pg-line); border-radius: 50%; background: #fff; font: 500 14px/1 var(--pg-mono); }
.io-steps code, .pg-p code { padding: 1px 5px; border-radius: 5px; background: #f4f4f5; color: var(--pg-ink); font: 13px var(--pg-mono); }
.io-steps .pg-more { display: inline-block; text-decoration: none; }


/* ---------- integrations ---------- */
.in-flow { display: grid; grid-template-columns: 1fr 1.3fr 1fr 1.3fr 1fr; align-items: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.in-node { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; text-align: center; }
.in-node b { font-size: 15px; font-weight: 500; }
.in-node small { color: var(--pg-muted); font: 500 11.5px/1.3 var(--pg-mono); }
.in-node--xee { border-color: #000; background: #000; color: #fff; }
.in-node--xee small { color: #a1a1aa; }
.in-wire { position: relative; display: grid; gap: 6px; justify-items: center; }
.in-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, #d4d4d4 0 6px, transparent 6px 12px); background-size: 24px 1px; animation: in-flow 1.2s linear infinite; }
.in-wire span { position: relative; padding: 3px 8px; border: 1px solid var(--pg-line); border-radius: 99px; background: #fff; color: var(--pg-ink2); font: 500 11px/1.2 var(--pg-mono); }
@keyframes in-flow { to { background-position: 24px 0; } }
.in-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.in-count { color: var(--pg-muted); font: 500 12px/1 var(--pg-mono); }
.in-card { padding: 20px; }
.in-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.in-top img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06); object-fit: cover; }
.in-xee { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #000; color: #fff; font: 700 18px/1 var(--font-sans, sans-serif); }
.in-grp { padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 10%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); font: 500 11px/1 var(--pg-mono); }
.in-ask { margin-top: 28px; }

/* ---------- templates ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 20px; }
.tp { display: grid; gap: 18px; align-content: start; }
.tp .ph { max-width: 230px; margin: 6px auto 0; }
.tp-meta { display: grid; gap: 0; }
.tp-copy { justify-self: start; margin-top: 12px; border-color: var(--pg-line); color: var(--pg-ink); }
.tp-copy:hover { background: var(--pg-surface); }
.tp-tl { margin: 0.6em 0 0; padding: 0 0 0 1.2em; list-style: none; display: grid; gap: 1.2em; border-left: 2px solid color-mix(in srgb, var(--ac) 30%, #fff); }
.tp-tl li { position: relative; display: grid; gap: 0.2em; line-height: 1.35; }
.tp-tl li::before { content: ""; position: absolute; left: calc(-1.2em - 6px); top: 0.15em; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); }
.tp-tl b { font-weight: 700; }
.tp-badge { align-self: flex-start; padding: 0.3em 0.8em; border-radius: 99px; background: var(--ac); color: #fff; font-weight: 700; font-size: 0.85em; }
.tp-price { margin-top: 0.4em; font-size: 2em; font-weight: 800; }
.tp-price s { margin-right: 0.3em; opacity: 0.4; font-size: 0.55em; font-weight: 600; }
.tp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; margin-top: 0.4em; }
.tp-cols > div { position: relative; display: grid; gap: 0.2em; padding: 0.9em 0.3em; border: 1.5px solid #e5e5e5; border-radius: 0.9em; text-align: center; }
.tp-cols > div.on { border-color: var(--ac); box-shadow: inset 0 0 0 1px var(--ac); }
.tp-cols span { font-weight: 700; }
.tp-cols em { position: absolute; top: -0.8em; left: 50%; transform: translateX(-50%); padding: 0.1em 0.5em; border-radius: 99px; background: var(--ac); color: #fff; font-style: normal; font-size: 0.75em; white-space: nowrap; }
.tp-toggle { display: flex; justify-content: space-between; align-items: center; padding: 0.8em 1em; border-radius: 0.9em; background: #f4f4f5; font-weight: 600; }
.tp-toggle i { width: 2.6em; height: 1.5em; border-radius: 99px; background: var(--ac); box-shadow: inset -1.1em 0 0 0.2em var(--ac), inset 1.1em 0 0 -0.1em #fff; }
.tp-proof { opacity: 1 !important; color: #b45309; font-weight: 700; }
.tp-quote { margin: 0.4em 0; padding: 0.9em 1em; border-radius: 0.9em; background: #fff; box-shadow: 0 0 0 1px #e5e7eb; font-style: italic; line-height: 1.4; }
.tp-table { width: 100%; margin-top: 0.4em; border-collapse: collapse; font-size: 0.95em; }
.tp-table th, .tp-table td { padding: 0.55em 0.3em; border-bottom: 1px solid #eee; text-align: center; }
.tp-table td:first-child { text-align: left; }
.tp-table th:last-child, .tp-table td:last-child { color: var(--ac); font-weight: 800; }

/* ---------- services ---------- */

/* ---------- tutorials ---------- */
.tu-path { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--pg-line); border-radius: 18px; overflow: hidden; background: #fff; }
.tu-path li + li { border-left: 1px solid var(--pg-line); }
.tu-path a { position: relative; display: grid; gap: 6px; height: 100%; padding: 22px 22px 24px; text-decoration: none; transition: background-color 150ms; }
.tu-path a:hover { background: var(--pg-surface); }
.tu-path a::after { content: "→"; position: absolute; right: 20px; top: 22px; color: var(--pg-faint); transition: transform 150ms, color 150ms; }
.tu-path a:hover::after { color: var(--pg-ink); transform: translateX(3px); }
.tu-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--pg-subs); color: #fff; font: 500 13px/1 var(--pg-mono); }
.tu-path b { font-size: 15.5px; font-weight: 500; }
.tu-path small { color: var(--pg-muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- blog ---------- */
.bl-top { position: relative; padding: clamp(48px, 7vw, 88px) 0 0; }
.bl-top::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--pg-line) 1px, transparent 1px), linear-gradient(90deg, var(--pg-line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; }
.bl-top .bl-wrap { position: relative; padding: 0 clamp(20px, 3vw, 48px) 40px; }
.bl-top h1 { margin: 0; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.bl-sub { margin: 18px 0 0; color: var(--pg-muted); font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem); letter-spacing: -0.01em; }
.bl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.bl-tab { height: 34px; padding: 0 15px; border: 0; border-radius: 8px; background: transparent; color: var(--pg-ink); font: 500 14.5px/1 var(--font-sans, inherit); cursor: pointer; transition: background-color 150ms, color 150ms; }
.bl-tab:hover { background: #f0f0f0; }
.bl-tab[aria-pressed="true"] { background: var(--pg-ink); color: #fff; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--pg-line); }
.bl-post { position: relative; display: flex; flex-direction: column; border-bottom: 1px solid var(--pg-line); background: #fff; color: inherit; text-decoration: none; }
.bl-post + .bl-post { border-left: 1px solid var(--pg-line); }
.bl-post[hidden] { display: none; }
.bl-art { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--pg-line); background:
  linear-gradient(rgb(0 0 0 / 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgb(0 0 0 / 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
  radial-gradient(70% 90% at 12% 10%, color-mix(in srgb, var(--c) 22%, #fff), transparent 70%),
  radial-gradient(60% 80% at 92% 95%, color-mix(in srgb, var(--c) 14%, #fff), transparent 70%), #fff; }
.bl-art > * { transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.bl-post:hover .bl-art > * { transform: translateY(-3px) scale(1.03); }
.bl-art--flat span { font: 400 clamp(36px, 5vw, 58px)/1 var(--pg-num); }
.bl-art--flat span:first-child { color: #b91c1c; text-decoration: line-through; text-decoration-thickness: 3px; opacity: 0.55; }
.bl-art--flat span:last-child { padding: 10px 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--pg-line), 0 18px 34px -18px rgb(0 0 0 / 0.3); color: color-mix(in srgb, var(--c) 85%, #000); }
.bl-art--move { align-items: flex-end; padding-bottom: 14%; }
.bl-art--move i { width: 15%; height: calc(26% + var(--n, 0) * 9%); border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--pg-line), 0 14px 26px -16px rgb(0 0 0 / 0.3); border-top: 4px solid color-mix(in srgb, var(--c) calc(35% + var(--n, 0) * 22%), #fff); }
.bl-art--move i:nth-child(2) { --n: 1; } .bl-art--move i:nth-child(3) { --n: 2; } .bl-art--move i:nth-child(4) { --n: 3; }
.bl-art--ask { flex-direction: column; gap: 10px; }
.bl-art--ask span { padding: 10px 18px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--pg-line), 0 18px 34px -18px rgb(0 0 0 / 0.3); font-size: 16px; }
.bl-art--ask b { padding: 7px 16px; border-radius: 99px; background: var(--c); color: #fff; font-size: 13px; }
.bl-text { display: flex; flex: 1; flex-direction: column; padding: 28px 24px 26px; }
.bl-text h2 { display: -webkit-box; margin: 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -0.015em; text-wrap: balance; }
.bl-text p:not(.bl-meta) { display: -webkit-box; margin: 12px 0 0; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--pg-muted); font-size: 15.5px; line-height: 1.6; }
.bl-meta { display: flex; align-items: center; gap: 12px; margin: auto 0 0; padding-top: 24px; color: var(--pg-muted); font-size: 15px; }
.bl-meta img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1px var(--pg-line); }
.bl-meta span + span::before { content: "·"; margin-right: 12px; }
.bl-post:hover h2 { text-decoration: underline; text-decoration-color: #d4d4d4; text-underline-offset: 4px; }
.bl-post:focus-visible { outline-offset: -3px; }
.bl-body { margin: 0; }

/* the frame's white fade over the first 320px would wash out the blog's title blocks */
.site-frame:has(.bp-head)::before, .site-frame:has(.bl-top)::before { display: none; }

/* blog post: title block, article with a side column */
.bp-head { position: relative; padding: clamp(40px, 6vw, 64px) 0 0; }
.bp-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--pg-line) 1px, transparent 1px), linear-gradient(90deg, var(--pg-line) 1px, transparent 1px); background-size: 60px 60px; background-position: center top; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); pointer-events: none; }
.bp-in { position: relative; padding: 0 clamp(20px, 5vw, 48px) 44px; }
.bp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--pg-muted); font-size: 14px; }
.bp-tag { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 1px solid var(--pg-line); border-radius: 8px; background: #fafafa; color: var(--pg-ink); font-weight: 500; text-decoration: none; transition: background-color 150ms, border-color 150ms; }
.bp-tag:hover { border-color: #d4d4d4; background: #f4f4f5; }
.site-frame .bp-head h1 { max-width: 24ch; margin: 22px 0 0; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.site-frame .bp-head .bp-lede { max-width: 40rem; margin: 20px 0 0; color: var(--pg-muted); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.bp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 358px; border-top: 1px solid var(--pg-line); }
.bp-main { min-width: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.bp-main .bl-art { aspect-ratio: 1.9 / 1; border-bottom: 0; }
.bp-main .bl-art > * { transition: none; }
.bp-main .bl-art--flat span { font-size: clamp(44px, 7vw, 80px); }
.bp-main .bl-body { max-width: none; padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 48px) 0; font-size: 16px; line-height: 1.75; color: #404040; }
.bp-main .bl-body > * { max-width: 40rem; }
.bp-main .bl-body p, .bp-main .bl-body ul, .bp-main .bl-body ol { margin-bottom: 20px; }
.bp-main .bl-body h2 { margin: 2.2em 0 0.7em; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.bp-side { border-left: 1px solid var(--pg-line); }
.bp-sticky { position: sticky; top: 72px; padding: 40px; }
.bp-label { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--pg-muted); font-size: 14px; }
.bp-label svg { width: 15px; height: 15px; }
.bp-label--toc { margin-top: 36px; }
.bp-author { display: flex; align-items: center; gap: 12px; margin: 0; }
.bp-author img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--pg-line); }
.bp-author span { display: grid; gap: 2px; font-size: 14px; line-height: 1.3; }
.bp-author b { font-weight: 500; }
.bp-author small { color: var(--pg-muted); font-size: 14px; }
.bp-toc { display: grid; margin-bottom: 32px; border-left: 1px solid var(--pg-line); }
.bp-toc a { position: relative; display: block; padding: 8px 0 8px 14px; color: var(--pg-muted); font-size: 14px; line-height: 1.35; text-decoration: none; transition: color 150ms; }
.bp-toc a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--pg-ink); opacity: 0; transition: opacity 150ms; }
.bp-toc a:hover, .bp-toc a[aria-current="true"] { color: var(--pg-ink); }
.bp-toc a[aria-current="true"]::before { opacity: 1; }
.bp-promo { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color 150ms, box-shadow 150ms; }
.bp-promo:hover { border-color: #d4d4d4; box-shadow: 0 14px 30px -22px rgb(0 0 0 / 0.35); }
.bp-promo__art { display: grid; place-items: center; aspect-ratio: 2 / 1; margin-bottom: 10px; border-radius: 12px; background: radial-gradient(70% 90% at 15% 10%, #ece6ff, transparent 70%), radial-gradient(60% 80% at 90% 95%, #dbe8ff, transparent 70%), #fafafa; }
.bp-promo__art img { height: 28px; width: auto; }
.bp-promo b { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.bp-promo small { color: var(--pg-muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 960px) {
  .bp-cols { grid-template-columns: 1fr; }
  .bp-side { border-left: 0; border-top: 1px solid var(--pg-line); }
  .bp-sticky { position: static; padding: 32px clamp(20px, 5vw, 48px); }
}

/* ---------- legal ---------- */
.lg-draft { max-width: 72rem; margin: 0 0 28px; }
.lg-table th { width: 140px; color: var(--pg-ink); }

/* ---------- case studies ---------- */
.cs-path { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cs-path li { padding: 22px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; }
.cs-path b { font-size: 16px; font-weight: 500; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; align-content: center; }

@media (max-width: 960px) {
  .tu-path, .cs-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tu-path li:nth-child(3) { border-left: 0; }
  .tu-path li:nth-child(n + 3) { border-top: 1px solid var(--pg-line); }
  .in-flow { grid-template-columns: 1fr; }
  .in-wire { grid-auto-flow: column; padding: 4px 0; }
  .in-wire::before { display: none; }
}
@media (max-width: 860px) {
  .io-steps li { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-post:nth-child(odd) { border-left: 0; }
}
@media (max-width: 560px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-post + .bl-post { border-left: 0; }
}
@media (max-width: 560px) {
  .tu-path, .cs-path { grid-template-columns: 1fr; }
  .tu-path li + li { border-left: 0; border-top: 1px solid var(--pg-line); }
}
@media (prefers-reduced-motion: reduce) {
  .in-wire::before, .pc-wave i { animation: none; }
}

.pg [hidden] { display: none !important; }
.tu-path a { align-content: start; }

.pg-row .pg-actions { justify-content: flex-start; }
.pg-row .pg-chips { margin: 20px 0 0; }
/* table heads stay in place inside their scroll box */
.pg-table thead th { position: static; }
/* rows of cards fill the width, however many there are */
.pg-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.nf { justify-items: center; }

/* ---------- product pages ---------- */
.pd-show { max-width: 980px; margin: 0 auto; }
.pd-dash { padding: 20px; }
.pd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.pd-kpis > div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #f0f0f0; border-radius: 12px; }
.pd-kpis small { color: var(--pg-muted); font-size: 12px; }
.pd-kpis .dx-big { font-size: 22px; }
.pd-steps { margin: 0; padding: 0; list-style: none; counter-reset: pd; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pd-steps li { counter-increment: pd; position: relative; padding: 22px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; }
.pd-steps li::before { content: counter(pd); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 85%, #000); font: 500 13px/1 var(--pg-mono); }
.pd-steps b { font-size: 16px; font-weight: 500; }
.pd-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 420px; margin: 0 auto; }
.pd-arm { position: absolute; top: 5%; right: 8%; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #e5e5e5; color: #404040; font-weight: 800; }
.pd-arm--b { background: var(--ac); color: #fff; }
.pd-field { padding: 18px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; }
.pd-field small { color: var(--pg-muted); font: 500 12px/1 var(--pg-mono); }
.pd-field > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pd-field span { padding: 4px 9px; border: 1px solid #e6e6e6; border-radius: 7px; background: #fafafa; font-size: 13px; }
.pd-field .pd-new { border-color: color-mix(in srgb, var(--pg-aso) 50%, #fff); background: color-mix(in srgb, var(--pg-aso) 10%, #fff); color: color-mix(in srgb, var(--pg-aso) 85%, #000); font-weight: 600; }
@media (max-width: 860px) {
  .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .pd-steps { grid-template-columns: 1fr; } }

/* ---------- compare ---------- */
.cp-table { max-width: 60rem; margin: 0 auto; }
.cp-table th:not(:first-child), .cp-table td { width: 34%; }
.cp-table td:nth-child(2) { background: color-mix(in srgb, var(--pg-tests) 4%, #fff); color: var(--pg-ink); }
.cp-table b { font-weight: 600; }
.cp-note { max-width: 60rem; margin: 14px auto 0; font-size: 13px; text-align: center; }

/* =====================================================================
   Links. Every link says where it goes: cards end in their address and an arrow button,
   text links fill with ink, footer links slide an arrow in.
   ===================================================================== */

/* cards that are links */
a.pg-card { overflow: hidden; }
a.pg-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--c, var(--pg-ink));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}
a.pg-card:hover::before, a.pg-card:focus-visible::before { transform: scaleX(1); }
.pg-card .pg-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.pg-card .pg-p + .pg-go, .pg-card .pg-meta + .pg-go { margin-top: 18px; border-top: 1px dashed var(--pg-line); padding-top: 14px; }
.pg-go code { min-width: 0; overflow: hidden; color: var(--pg-muted); font: 500 12px/1 var(--pg-mono); text-overflow: ellipsis; white-space: nowrap; transition: color 200ms; }
a.pg-card:hover .pg-go code, a.pg-card:focus-visible .pg-go code { color: var(--pg-ink); }
.pg-go i {
  position: relative;
  flex: none;
  display: block;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 50%;
  color: var(--pg-ink);
  transition: background-color 220ms, border-color 220ms, color 220ms, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pg-go svg { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.pg-go svg + svg { transform: translateX(-26px); }
a.pg-card:hover .pg-go i, a.pg-card:focus-visible .pg-go i { border-color: var(--c, var(--pg-ink)); background: var(--c, var(--pg-ink)); color: #fff; transform: scale(1.06); }
a.pg-card:hover .pg-go svg:first-child, a.pg-card:focus-visible .pg-go svg:first-child { transform: translateX(26px); }
a.pg-card:hover .pg-go svg + svg, a.pg-card:focus-visible .pg-go svg + svg { transform: none; }
a.pg-card:active { transform: translateY(0) scale(0.995); }

/* a standalone text link with an arrow: the line draws in, the arrow steps forward */
.pg-more { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 1px; color: var(--pg-ink); font-size: 14px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 280ms cubic-bezier(0.23, 1, 0.32, 1); }
.pg-more::after { content: "→"; margin: 0; transition: transform 200ms ease; }
.pg-more:hover { background-size: calc(100% - 1.4em) 1px; }
.pg-more:hover::after { transform: translateX(3px); }

/* links inside text: an underline that becomes an ink fill */
.pg-prose a, .pg-p a, .pg-lede a, .pg-faq p a, .pg-note a {
  padding: 0 2px;
  margin: 0 -2px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--pg-ink), var(--pg-ink)) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 220ms cubic-bezier(0.23, 1, 0.32, 1), color 180ms;
}
.pg-prose a:hover, .pg-p a:hover, .pg-lede a:hover, .pg-faq p a:hover, .pg-note a:hover { background-size: 100% 100%; color: #fff; }
.pg-prose a[href^="http"]::after, .pg-p a[href^="http"]::after { content: "↗"; margin-left: 3px; font-size: 0.8em; opacity: 0.55; }

/* buttons press in */
.pg-btn { transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease; }
.pg-btn:hover { box-shadow: 0 6px 16px -10px rgb(0 0 0 / 0.4); }
.pg-btn:active { transform: translateY(1px); box-shadow: none; }

/* tutorials path, blog lead, table of contents */
.tu-path a:hover .tu-n { transform: scale(1.12); }
.tu-n { transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.pg-toc a { position: relative; transition: background-color 150ms, color 150ms, padding-left 180ms; }
.pg-toc a:hover { padding-left: 14px; }
.pg-crumb { transition: border-color 150ms, color 150ms; }
.pg-crumb:hover { border-color: #d4d4d4; color: var(--pg-ink); }

/* footer links: an arrow slides in */
.xf-col a::after { content: "→"; opacity: 0; transform: translateX(-5px); color: #737373; font-size: 13px; transition: opacity 160ms, transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.xf-col a:hover::after, .xf-col a:focus-visible::after { opacity: 1; transform: none; }
.xf-col a:has(.xf-ext)::after { content: none; }
.xf-col a { transition: color 150ms, transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.xf-col a:hover { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  a.pg-card::before, .pg-go i, .pg-go svg, .pg-more, .pg-more::after, .xf-col a, .xf-col a::after, .tu-n { transition: none; }
  .xf-col a:hover { transform: none; }
}

/* grids that would leave a short last row sit in three columns instead */
.pg-grid:has(> :nth-child(6):last-child), .pg-grid:has(> :nth-child(15):last-child), .pg-grid:has(> :nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (max-width: 860px) { .pg-grid:has(> :nth-child(6):last-child), .pg-grid:has(> :nth-child(15):last-child), .pg-grid:has(> :nth-child(9):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-grid:has(> :nth-child(6):last-child), .pg-grid:has(> :nth-child(15):last-child), .pg-grid:has(> :nth-child(9):last-child) { grid-template-columns: 1fr; } }

/* template cards: the copy buttons line up along the bottom */
.tp { grid-template-rows: auto 1fr; }
.tp-meta { display: flex; flex-direction: column; }
.tp-meta .tp-copy { margin-top: auto; align-self: flex-start; }
.tp-meta .pg-p { margin-bottom: 14px; }

/* long text keeps its list markers */
.pg-prose ul, .pg-prose ol { padding-left: 1.3em; }
.pg-prose ul { list-style: disc; }
.pg-prose ol { list-style: decimal; }
.pg-prose li::marker { color: var(--pg-faint); }

/* blog: back link above the title, and the next post below the text */
.pg-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; color: var(--pg-muted); font: 500 13px/1 var(--pg-mono); text-decoration: none; transition: color 150ms; }
.pg-back::before { content: "←"; display: inline-block; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.pg-back:hover { color: var(--pg-ink); }
.pg-back:hover::before { transform: translateX(-3px); }
.pg-back + .pg-crumb { margin-left: 14px; }
.bl-next { max-width: 44rem; margin: 0 auto; }
.bl-next .pg-card { padding: 24px; }

/* subscriptions: a user's timeline */
.sb-access { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: #f7f5ff; }
.sb-access span:first-child { display: grid; gap: 2px; }
.sb-access small { color: var(--pg-muted); font-size: 12px; }
.sb-access b { font: 500 15px/1 var(--pg-mono); }
.sb-tl { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.sb-tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: #e5e5e5; }
.sb-tl li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; padding-left: 20px; }
.sb-tl li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #e5e5e5; }
.sb-tl time { grid-row: span 2; padding-top: 2px; color: var(--pg-muted); font: 500 12px/1.3 var(--pg-mono); }
.sb-tl b { font-size: 14px; font-weight: 500; }
.sb-tl span { color: var(--pg-muted); font-size: 13px; line-height: 1.45; }
.sb-tl--ask::before { background: #f59e0b; }
.sb-tl--reply::before { background: #16a34a; }
.sb-note { margin: 16px 0 0; color: var(--pg-faint); font-size: 12px; }

/* subscriptions: the numbers table */
.sb-nums tbody th { width: 14%; }
.sb-nums td:first-of-type { width: 46%; }
.sb-nums code { padding: 3px 8px; border-radius: 7px; background: #f4f4f5; color: var(--pg-ink2); font: 500 12px/1.3 var(--pg-mono); }

@media (max-width: 960px) {
  .sb-body { grid-template-columns: 1fr; }
  .sb-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid #eee; }
  .sb-chat { border-left: 0; border-top: 1px solid #eee; min-height: 300px; }
}
@media (max-width: 560px) { .sb-metrics { grid-template-columns: 1fr; } .sb-nums td:first-of-type { width: auto; } }
@media (prefers-reduced-motion: reduce) { .sb-bars button { transition: none; } .sb-dots i { animation: none; } }


/* =====================================================================
   Subscriptions. Colour belongs to the data: revenue purple, installs blue, trials teal.
   Everything else is black, white and hairlines.
   ===================================================================== */
.sb-hero { position: relative; padding: clamp(56px, 7vw, 96px) var(--pg-gutter) 0; text-align: center; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #faf8ff 45%, #f1f7ff 100%); }
.sb-hero::before { content: none; }
.sb-hero__in { position: relative; z-index: 1; padding-bottom: clamp(190px, 22vw, 260px); }
.sb-hero h1 { max-width: 15ch; }
.sb-back { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(190px, 22vw, 280px); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 38%); mask-image: linear-gradient(180deg, transparent 0%, #000 38%); }
.sb-back__grid path { fill: none; stroke: rgb(0 0 0 / 0.05); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sb-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.sb-back circle { fill: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sb-back__mark { stroke-width: 6; vector-effect: non-scaling-stroke; }

.sb-sec { padding: clamp(48px, 7vw, 88px) var(--pg-gutter); }
.sb-sec--tint { background: var(--pg-surface); }
.sb-head { max-width: 40rem; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.sb-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--pg-muted); font-size: 15px; font-weight: 500; }
.sb-eyebrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sb-head h2 { margin: 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.sb-head > p:last-child { margin: 14px 0 0; color: var(--pg-muted); font-size: 17px; line-height: 1.55; text-wrap: balance; }
.sb-cap { margin: 16px 0 0; text-align: center; font-size: 13px; }

/* the explorer: tabs on top, chart and chat below, hairlines only */
.sb-ex { max-width: 1080px; margin: 0 auto; }
.sb-win { overflow: hidden; border: 1px solid var(--pg-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 40px 80px -50px rgb(0 0 0 / 0.25); }
.sb-tabs, .sb-etabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--pg-line); }
.sb-tab, .sb-etab { position: relative; display: grid; gap: 6px; padding: 18px 22px 16px; border: 0; border-right: 1px solid var(--pg-line); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms; }
.sb-tab:last-child, .sb-etab:last-child { border-right: 0; }
.sb-tab small, .sb-etab small { display: flex; align-items: center; gap: 8px; color: var(--pg-ink2); font-size: 14px; }
.sb-tab small i { width: 9px; height: 9px; border-radius: 2px; background: var(--k); opacity: 0.55; }
.sb-tab b, .sb-etab b { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sb-tab::after, .sb-etab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pg-ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.sb-tab[aria-pressed="true"]::after, .sb-etab[aria-pressed="true"]::after { transform: scaleX(1); }
.sb-tab[aria-pressed="true"] small i { opacity: 1; }
.sb-tab:hover, .sb-etab:hover { background: #fafafa; }
.sb-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.sb-chart { position: relative; min-width: 0; padding: 14px 8px 16px 14px; }
.sb-kpi { padding: 0 8px 6px; color: var(--pg-muted); font: 500 12px/1 var(--pg-mono); }
.sb-kpi span { color: #16a34a; }
.sb-plot { position: relative; height: 300px; outline: none; }
.sb-plot:focus-visible { outline: 2px solid var(--pg-ink); outline-offset: 2px; border-radius: 6px; }
.sb-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sb-grid { stroke: #e4e4e7; stroke-dasharray: 4 4; stroke-width: 1; }
.sb-ylab, .sb-xlab { fill: #8a8a93; font: 500 11px "Geist Mono", ui-monospace, monospace; }
.sb-linep { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.sb-cross { stroke: rgb(0 0 0 / 0.16); stroke-width: 1; }
.sb-dot { fill: #fff; stroke-width: 2; }
.sb-tipc { position: absolute; z-index: 3; min-width: 150px; overflow: hidden; border: 1px solid var(--pg-line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.2); pointer-events: none; transform: translate(-50%, -112%); transition: opacity 120ms; font-size: 13px; }
.sb-tipc div:first-child { padding: 8px 12px; border-bottom: 1px solid var(--pg-line); color: var(--pg-ink); font-weight: 500; }
.sb-tipc div:not(:first-child) { display: flex; align-items: center; gap: 8px; padding: 7px 12px; color: var(--pg-ink2); }
.sb-tipc div:nth-child(2) { padding-top: 9px; }
.sb-tipc div:last-child { padding-bottom: 9px; }
.sb-tipc i { width: 9px; height: 9px; border-radius: 2px; }
.sb-tipc b { margin-left: auto; padding-left: 14px; font-weight: 500; color: var(--pg-ink); font-variant-numeric: tabular-nums; }

.sb-chat { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--pg-line); background: #fcfcfc; }
.sb-chat__head { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--pg-line); font-size: 13.5px; }
.sb-chat__head svg { width: 15px; height: 15px; fill: none; stroke: var(--pg-muted); stroke-width: 1.8; }
.sb-chat__head small { margin-left: auto; color: #8a8a93; font: 500 11px/1 var(--pg-mono); }
.sb-thread { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 16px; }
.sb-q { align-self: flex-end; max-width: 92%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: #ececee; font-size: 13.5px; line-height: 1.4; }
.sb-a { font-size: 13.5px; line-height: 1.55; color: var(--pg-ink2); }
.sb-a b { color: var(--pg-ink); font-weight: 600; }
.sb-a p { margin: 0 0 10px; }
.sb-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.sb-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8a8a93; animation: sb-dot 1s ease-in-out infinite; }
.sb-dots i:nth-child(2) { animation-delay: 0.15s; } .sb-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes sb-dot { 50% { transform: translateY(-3px); opacity: 0.4; } }
.sb-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sb-tbl th, .sb-tbl td { padding: 6px 0; border-top: 1px solid #ececee; text-align: left; font-weight: 400; }
.sb-tbl th { color: #8a8a93; font: 500 10.5px/1 var(--pg-mono); text-transform: uppercase; }
.sb-tbl td:not(:first-child), .sb-tbl th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.sb-tbl tr.sum td { color: var(--pg-ink); font-weight: 600; }
.sb-ask { display: flex; align-items: center; gap: 8px; margin: 0 16px 16px; padding: 6px 6px 6px 12px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; color: var(--pg-ink2); font-size: 12.5px; line-height: 1.2; cursor: text; transition: border-color 150ms, box-shadow 150ms; }
.sb-ask:hover { border-color: #d4d4d4; }
.sb-ask:focus-within { border-color: #a1a1aa; box-shadow: 0 0 0 3px rgb(0 0 0 / 0.05); }
.sb-ask > svg { flex: none; width: 14px; height: 14px; fill: none; stroke: #8b5cf6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-ask > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-send { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #000; color: #fff; cursor: pointer; transition: background-color 150ms, transform 120ms, opacity 150ms; }
.sb-send svg { width: 14px; height: 14px; }
.sb-send:hover { background: #262626; }
.sb-send:active { transform: scale(0.94); }
.sb-send:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.sb-send[disabled] { opacity: 0.35; cursor: default; }

/* tiles: hairline columns, mockups that fade into the page */
.sb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-tile { display: flex; flex-direction: column; padding: 0 0 32px; border-right: 1px solid var(--pg-line); }
.sb-tile:last-child { border-right: 0; }
.sb-mock { position: relative; height: 300px; padding: 28px 28px 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
.sb-tile h3 { margin: 6px 32px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.sb-tile p { margin: 8px 32px 0; color: var(--pg-muted); font-size: 15px; line-height: 1.55; }
.sb-btn { align-self: flex-start; display: inline-flex; align-items: center; height: 34px; margin: 18px 32px 0; padding: 0 14px; border: 1px solid var(--pg-line); border-radius: 9px; background: #fff; color: var(--pg-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 150ms, border-color 150ms; }
.sb-btn:hover { background: var(--pg-surface); border-color: #d4d4d4; }
.sb-ucard, .sb-rcard { border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.3); }
.sb-ucard { padding: 16px; }
.sb-ucard__top { display: flex; align-items: center; gap: 12px; }
.sb-ucard__top > div { display: grid; gap: 2px; }
.sb-ucard__top b { font-size: 15px; font-weight: 600; }
.sb-ucard__top small { color: var(--pg-muted); font-size: 12px; }
.sb-ucard__top .dx-pill { margin-left: auto; --c: #8b5cf6; }
.sb-av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 62% 50%), hsl(calc(var(--h) + 40) 62% 40%)); color: #fff; font: normal 600 13px/1 Inter, sans-serif; }
.sb-ustats { display: grid; grid-template-columns: 1fr auto 1fr 1.3fr; gap: 8px; align-items: center; margin: 14px 0; }
.sb-ustats > div { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--pg-line); border-radius: 9px; }
.sb-ustats small { color: var(--pg-muted); font-size: 11px; text-decoration: underline dotted #c4c4c4; text-underline-offset: 2px; }
.sb-ustats b { font-size: 13.5px; font-weight: 500; }
.sb-ustats > i { color: var(--pg-muted); font-style: normal; }
.sb-ucard .sb-tl { gap: 12px; margin-top: 4px; }
.sb-mock--stack { display: grid; place-items: start center; padding-top: 34px; }
.sb-scard { position: absolute; width: 74%; padding: 12px 14px 14px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; box-shadow: 0 14px 30px -16px rgb(0 0 0 / 0.28); font-size: 12.5px; }
.sb-scard b { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.sb-scard b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-scard > div { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 6px 8px; margin-top: 3px; border-radius: 6px; color: var(--pg-ink2); }
.sb-scard > div i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 6px; background: rgb(59 130 246 / 0.12); }
.sb-scard > div span, .sb-scard > div em { position: relative; font-style: normal; }
.sb-scard > div em { color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.sb-scard--3 { top: 20px; left: 4%; transform: rotate(-5deg); opacity: 0.55; }
.sb-scard--2 { top: 60px; left: 13%; transform: rotate(-3deg); opacity: 0.8; }
.sb-scard--1 { top: 104px; left: 22%; transform: rotate(-1.5deg); }
.sb-rcard { display: grid; gap: 10px; padding: 14px; }
.sb-rcard__row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; }
.sb-rcard__row span { display: inline-flex; align-items: center; gap: 8px; }
.sb-rcard__row svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.sb-toggle { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #d4d4d4; }
.sb-toggle::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 160ms; }
.sb-toggle.on { background: #16a34a; } .sb-toggle.on::after { transform: translateX(14px); }
.sb-rcard__msg { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--pg-line); border-radius: 10px; }
.sb-rcard__msg small { color: var(--pg-muted); font: 500 11px/1 var(--pg-mono); }
.sb-rcard__msg b { font-size: 13px; font-weight: 500; line-height: 1.4; }
.sb-rcard__msg--reply { margin-left: 22px; border-color: #bbf7d0; background: #f0fdf4; }
.sb-rcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-rcard__chips span { padding: 3px 9px; border: 1px solid var(--pg-line); border-radius: 99px; color: var(--pg-ink2); font-size: 12px; }

/* the funnel ribbon */
.sb-fn { position: relative; max-width: 1040px; margin: 0 auto; padding-top: 34px; }
.sb-fn__pill { position: absolute; left: 50%; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px -14px rgb(0 0 0 / 0.3); transform: translateX(-50%); white-space: nowrap; }
.sb-fn__pill > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #000; color: #fff; font: normal 700 16px/1 var(--font-sans, sans-serif); }
.sb-fn__pill span { display: grid; gap: 1px; }
.sb-fn__pill b { font-size: 15px; font-weight: 600; }
.sb-fn__pill small { color: var(--pg-muted); font-size: 12px; }
.sb-fn__pill em { padding: 4px 9px; border: 1px solid var(--pg-line); border-radius: 7px; background: #fafafa; color: var(--pg-ink2); font: normal 500 12.5px/1 var(--pg-mono); }
.sb-fn__svg { display: block; width: 100%; height: clamp(150px, 20vw, 230px); border: 1px solid var(--pg-line); border-radius: 18px; background: #fff; }
.sb-fn__halo { opacity: 0.16; }
.sb-fn__rule { stroke: #eee; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sb-fn__stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.sb-fn__stages > div { display: grid; gap: 4px; padding: 0 6px; text-align: center; }
.sb-fn__stages small { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--pg-ink2); font-size: 14px; }
.sb-fn__stages small i { width: 9px; height: 9px; border-radius: 2px; background: var(--k); }
.sb-fn__stages b { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sb-fn__stages span { color: var(--pg-muted); font: 500 12px/1 var(--pg-mono); }

/* events: tabs, a table that fades out, chips that drift past */
.sb-events { max-width: 1080px; margin: 0 auto; overflow: hidden; border: 1px solid var(--pg-line); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 40px 80px -50px rgb(0 0 0 / 0.2); }
.sb-etable { max-height: 372px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.sb-etable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sb-etable th, .sb-etable td { padding: 12px 16px; border-bottom: 1px solid var(--pg-line); text-align: left; white-space: nowrap; }
.sb-etable th { color: var(--pg-ink); font-weight: 500; font-size: 13.5px; background: #fff; }
.sb-etable td { color: var(--pg-ink2); font-variant-numeric: tabular-nums; }
.sb-etable td.u { display: flex; align-items: center; gap: 10px; color: var(--pg-ink); }
.sb-etable .sb-av { width: 22px; height: 22px; font-size: 9px; }
.sb-etable tbody tr { animation: sb-row 380ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes sb-row { from { opacity: 0; transform: translateY(6px); } }
.sb-chips { display: grid; gap: 10px; max-width: 1080px; margin: 22px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.sb-chips__row { display: flex; gap: 10px; width: max-content; animation: sb-drift 60s linear infinite; }
.sb-chips__row--rev { animation-direction: reverse; animation-duration: 70s; }
@keyframes sb-drift { to { transform: translateX(-50%); } }
.sb-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--pg-line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--pg-muted); white-space: nowrap; }
.sb-chips b { color: var(--pg-ink2); font-weight: 500; }
.sb-chips u { padding: 2px 8px; border-radius: 6px; background: #f4f4f5; color: var(--pg-ink); text-decoration: none; }

/* subscriptions: a user's timeline (also used inside the user card) */
.sb-tl { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sb-tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: #e5e5e5; }
.sb-tl li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; padding-left: 20px; }
.sb-tl li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 0 1px #e5e5e5; }
.sb-tl time { grid-row: span 2; padding-top: 2px; color: var(--pg-muted); font: 500 11.5px/1.3 var(--pg-mono); }
.sb-tl b { font-size: 13px; font-weight: 500; }
.sb-tl span { color: var(--pg-muted); font-size: 12px; line-height: 1.4; }
.sb-tl--ask::before { background: #f59e0b; }

.sb-numwrap { max-width: 1080px; margin: 0 auto; }
.sb-nums tbody th { width: 15%; white-space: nowrap; }
.sb-nums tbody th i { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 2px; background: var(--k); }
.sb-nums td:first-of-type { width: 44%; }
.sb-nums code { padding: 3px 8px; border-radius: 7px; background: #f4f4f5; color: var(--pg-ink2); font: 500 12px/1.3 var(--pg-mono); }

@media (max-width: 960px) {
  .sb-body { grid-template-columns: 1fr; }
  .sb-chat { border-left: 0; border-top: 1px solid var(--pg-line); }
  .sb-tiles { grid-template-columns: 1fr; }
  .sb-tile { border-right: 0; border-bottom: 1px solid var(--pg-line); }
  .sb-tile:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .sb-tab, .sb-etab { padding: 14px 12px 12px; }
  .sb-tab b, .sb-etab b { font-size: 20px; }
  .sb-tab small, .sb-etab small { font-size: 12px; }
  .sb-etable { overflow-x: auto; }
  .sb-fn__pill em { display: none; }
  .sb-fn__stages b { font-size: 21px; }
  .sb-fn__stages small { font-size: 12px; }
  .sb-nums td:first-of-type { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .sb-chips__row, .sb-dots i, .sb-etable tbody tr { animation: none; } }

/* hero content sits above the site's white top fade; button icons have a size */
.pg .pg-hero > *, .pg .sb-hero__in { position: relative; z-index: 6; }
.pg .sb-back { z-index: 0; }
.pg-btn { white-space: nowrap; }
.pg-btn svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg .sb-hero > .sb-back { position: absolute; z-index: 0; }


/* =====================================================================
   Product pages beyond Subscriptions: A/B tests, ASO, Apple Ads.
   Same kit; each page keeps its own accent (--pc).
   ===================================================================== */
.sb-hero--tests { background: linear-gradient(180deg, #fff 0%, #f6fdf8 45%, #ecf9f0 100%); }
.sb-hero--aso { background: linear-gradient(180deg, #fff 0%, #fff9f4 45%, #fff1e6 100%); }
.sb-hero--ads { background: linear-gradient(180deg, #fff 0%, #f6f9ff 45%, #ecf3ff 100%); }
.sb-sec--tests, .sb-sec--aso, .sb-sec--ads { --pc: var(--pg-tests); }
.sb-sec--aso { --pc: var(--pg-aso); } .sb-sec--ads { --pc: var(--pg-ads); }

/* the panel on the right of the chart: an agent's proposal you can act on */
.sb-agent { flex: 1; display: grid; align-content: start; gap: 14px; padding: 16px; font-size: 13.5px; line-height: 1.55; color: var(--pg-ink2); }
.sb-agent__lab { color: #8a8a93; font: 500 11px/1 var(--pg-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.sb-odds { display: grid; gap: 8px; }
.sb-odds__n { font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--pg-ink); }
.sb-odds__bar { height: 6px; overflow: hidden; border-radius: 99px; background: #eee; }
.sb-odds__bar i { display: block; height: 100%; width: var(--w, 0); border-radius: inherit; background: var(--pc, #16a34a); transition: width 500ms cubic-bezier(0.23, 1, 0.32, 1); }
.sb-agent p { margin: 0; }
.sb-agent b { color: var(--pg-ink); font-weight: 600; }
.sb-act { justify-self: start; height: 36px; padding: 0 16px; border: 1px solid #000; border-radius: 10px; background: #000; color: #fff; font: 500 13.5px/1 inherit; cursor: pointer; transition: background-color 150ms, transform 120ms, opacity 150ms; }
.sb-act:hover { background: #262626; }
.sb-act:active { transform: translateY(1px); }
.sb-act--ghost { border-color: var(--pg-line); background: #fff; color: var(--pg-ink); }
.sb-act--ghost:hover { background: #fafafa; }
.sb-act[disabled] { opacity: 0.35; cursor: default; }
.sb-agent__state { margin: 0; color: var(--pg-muted); font-size: 12.5px; line-height: 1.45; }
.sb-agent__state.ok { color: #166534; }
.sb-lead { margin: 0 8px 4px; color: #8a8a93; font: 500 12px/1 var(--pg-mono); }
.sb-fieldbox { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fff; }
.sb-fieldbox small { color: var(--pg-muted); font: 500 11px/1 var(--pg-mono); }
.sb-fieldbox > div:first-of-type { display: flex; flex-wrap: wrap; gap: 5px; }
.sb-fieldbox > div:first-of-type span { padding: 3px 8px; border: 1px solid #e6e6e6; border-radius: 6px; background: #fafafa; color: var(--pg-ink2); font-size: 12px; }
.sb-fieldbox .pd-new { animation: sb-pop 360ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes sb-pop { from { transform: scale(0.6); opacity: 0; } }
.sb-fieldbox__bar { height: 4px; overflow: hidden; border-radius: 99px; background: #eee; }
.sb-fieldbox__bar i { display: block; height: 100%; width: var(--w, 0); background: var(--pg-aso); transition: width 400ms; }
.sb-budget { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sb-budget th, .sb-budget td { padding: 7px 0; border-top: 1px solid #ececee; text-align: left; font-weight: 400; }
.sb-budget thead th { border-top: 0; color: #8a8a93; font: 500 10.5px/1 var(--pg-mono); text-transform: uppercase; }
.sb-budget td:not(:first-child), .sb-budget th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.sb-budget td:nth-child(2) { color: var(--pg-ink); font-weight: 600; }
.sb-budget em { display: inline-block; min-width: 34px; margin-left: 6px; font-style: normal; font-weight: 600; }
.sb-budget [data-b=brand-d] { color: #16a34a; } .sb-budget [data-b=comp-d] { color: #dc2626; }

/* ledger tables share the event-table look */
.sb-etable tbody[hidden] { display: none; }
.sb-etable tbody tr { animation: sb-row 380ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.sb-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: #f4f4f5; color: var(--pg-ink2); font-size: 12px; font-weight: 500; }
.sb-pill--ok { background: #dcfce7; color: #166534; } .sb-pill--run { background: #dbeafe; color: #1e40af; } .sb-pill--idea { background: #fef3c7; color: #92400e; } .sb-pill--no { background: #f4f4f5; color: #52525b; }
.sb-up { color: #16a34a; font-weight: 600; } .sb-dn { color: #dc2626; font-weight: 600; }
.sb-dd { display: inline-flex; gap: 3px; vertical-align: middle; } .sb-dd i { width: 6px; height: 6px; border-radius: 50%; background: #e4e4e7; } .sb-dd i.on { background: var(--pg-aso); }
.sb-etabs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* tile mockups */
.sb-mock--phones { display: flex; justify-content: center; gap: 22px; padding-top: 30px; }
.sb-mock--phones .ph { width: 38%; font-size: 8.5px; flex: none; }
.sb-mock--phones .ph-plan { padding: 0.6em 0.8em; }
.sb-mock--phones .pd-arm { top: 3%; right: 6%; }
.sb-mock--views .sb-ucard { padding: 16px; }
.sb-vsteps { display: grid; gap: 10px; margin-top: 12px; }
.sb-vsteps > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; }
.sb-vsteps i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: #eee; overflow: hidden; }
.sb-vsteps i::after { content: ""; display: block; height: 100%; width: var(--a); border-radius: inherit; background: #a1a1aa; }
.sb-vsteps i.b::after { background: #16a34a; }
.sb-vsteps b { font-weight: 500; }
.sb-scard--l1, .sb-scard--l2, .sb-scard--l3 { width: 78%; }
.sb-scard--l3 { top: 18px; left: 4%; transform: rotate(-5deg); opacity: 0.5; }
.sb-scard--l2 { top: 62px; left: 11%; transform: rotate(-3deg); opacity: 0.78; }
.sb-scard--l1 { top: 108px; left: 18%; transform: rotate(-1.5deg); }
.sb-lang { display: grid; gap: 3px; }
.sb-lang small { color: var(--pg-muted); font: 500 11px/1 var(--pg-mono); }
.sb-lang b { margin: 0; font-size: 14px; font-weight: 500; }
.sb-kw { display: grid; gap: 0; padding: 6px 14px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.3); }
.sb-kw > div { display: grid; grid-template-columns: 1fr 70px auto 40px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; }
.sb-kw > div:first-child { border-top: 0; }
.sb-kw .bar { height: 5px; border-radius: 99px; background: #eee; overflow: hidden; } .sb-kw .bar i { display: block; height: 100%; width: var(--w); background: var(--pg-aso); }
.sb-kw .rk { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-limits { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.3); }
.sb-limits > div { display: grid; gap: 6px; font-size: 12.5px; }
.sb-limits > div > span { display: flex; justify-content: space-between; color: var(--pg-ink2); } .sb-limits b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-limits i { display: block; height: 6px; border-radius: 99px; background: #eee; overflow: hidden; } .sb-limits i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--pg-aso); }
.sb-limits .full i::after { background: #16a34a; }
.sb-camp { display: grid; padding: 6px 14px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.3); }
.sb-camp > div { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; }
.sb-camp > div:first-child { border-top: 0; color: #8a8a93; font: 500 10.5px/1 var(--pg-mono); text-transform: uppercase; }
.sb-camp small { display: block; color: var(--pg-muted); font-size: 11.5px; }
.sb-camp b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-hist { display: grid; gap: 0; padding: 6px 14px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 30px -20px rgb(0 0 0 / 0.3); }
.sb-hist > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; }
.sb-hist > div:first-child { border-top: 0; }
.sb-hist b { font-weight: 500; } .sb-hist small { grid-column: 1; color: var(--pg-muted); font-size: 11.5px; }
.sb-hist u { grid-row: 1 / span 2; grid-column: 2; padding: 4px 10px; border: 1px solid var(--pg-line); border-radius: 8px; color: var(--pg-ink); font-size: 12px; font-weight: 500; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .sb-fieldbox .pd-new { animation: none; } .sb-odds__bar i, .sb-fieldbox__bar i { transition: none; } }

/* language cards inside a stacked tile */
.sb-scard > .sb-lang { grid-template-columns: 1fr; padding: 4px 8px; }
.sb-scard .sb-lang b { display: block; margin: 0; font-size: 13.5px; font-weight: 500; }
.sb-scard--l1, .sb-scard--l2, .sb-scard--l3 { width: 76%; }

/* short ledgers show every row; only the long event stream fades out */
.sb-events[data-ledger] .sb-etable { max-height: none; -webkit-mask-image: none; mask-image: none; }
.sb-mock--phones { gap: 18px; padding-top: 26px; }
.sb-mock--phones .ph { width: 40%; font-size: 7px; }

/* the chart fills whatever height its panel needs; the tooltip never wraps */
.sb-chart { display: flex; flex-direction: column; }
.sb-plot { flex: 1; height: auto; min-height: 300px; }
.sb-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sb-tipc { min-width: 170px; }
.sb-tipc div:not(:first-child) { white-space: nowrap; }

/* =====================================================================
   Product page heroes. Four layouts, one idea each:
   Subscriptions: text left, a live purchase feed   (light, lilac)
   A/B tests:     centred, a prompt and two phones   (light, mint)
   ASO:           phone left, text right             (light, peach)
   Apple Ads:     centred, a budget pipeline         (dark)
   ===================================================================== */
.hx { position: relative; overflow: hidden; padding: clamp(52px, 6vw, 92px) var(--pg-gutter) clamp(52px, 6vw, 88px); }
.hx-in { position: relative; z-index: 6; max-width: 1120px; margin: 0 auto; }
.hx h1 { margin: 0; font-size: clamp(2.25rem, 1.4rem + 2.9vw, 3.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.hx .pg-lede { max-width: 38rem; }
.hx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.hx-split .hx-copy { text-align: left; }
.hx-split .pg-lede { margin-left: 0; }
.hx-split .pg-actions { justify-content: flex-start; }
.hx-split--rev { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
.hx-split--rev .hx-device { order: -1; }
.hx-center { text-align: center; }
.hx-center h1 { max-width: 17ch; margin-inline: auto; }
.hx-center .pg-lede { margin-inline: auto; }
.hx-copy .pg-crumb, .hx-center .pg-crumb { margin-bottom: 22px; }

/* ---- Subscriptions: a live ledger ---- */
.hx-subs { background: radial-gradient(60% 70% at 85% 30%, #f1ebff 0%, transparent 70%), linear-gradient(180deg, #fff 0%, #fbfaff 100%); }
.hx-card { padding: 18px 18px 16px; border: 1px solid var(--pg-line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 50px 90px -50px rgb(139 92 246 / 0.55); }
.hx-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.hx-card__top > div { display: grid; gap: 4px; }
.hx-card__top small { color: var(--pg-muted); font-size: 13px; }
.hx-card__top b { font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hx-live { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 99px; background: #f0fdf4; color: #166534; font: 500 12px/1 var(--pg-mono); }
.hx-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / 0.5); animation: hx-ping 1.8s ease-out infinite; }
@keyframes hx-ping { to { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } }
.hx-spark { display: block; width: 100%; height: 70px; margin: 14px 0 6px; }
.hx-feed { position: relative; display: grid; margin: 0; padding: 0; list-style: none; height: 252px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hx-feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; height: 63px; padding: 0 2px; border-top: 1px solid #f1f1f3; }
.hx-feed li.new { animation: hx-in 520ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes hx-in { from { opacity: 0; transform: translateY(-14px); } }
.hx-feed .sb-av { width: 32px; height: 32px; font-size: 11px; }
.hx-feed li > span { display: grid; gap: 2px; min-width: 0; }
.hx-feed b { font-size: 14px; font-weight: 500; }
.hx-feed small { color: var(--pg-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-feed em { color: #16a34a; font: normal 600 14px/1 inherit; font-variant-numeric: tabular-nums; }
.hx-ask { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 11px 14px; border: 1px solid var(--pg-line); border-radius: 12px; background: #fafafa; color: var(--pg-ink2); font-size: 13.5px; }
.hx-ask svg { width: 15px; height: 15px; fill: none; stroke: #8b5cf6; stroke-width: 1.8; flex: none; }
.hx-ask span { flex: 1; }
.hx-ask em { font-style: normal; color: var(--pg-muted); }

/* ---- A/B tests: a prompt, then two phones race ---- */
.hx-tests { background: radial-gradient(70% 60% at 50% 100%, #e4f7ea 0%, transparent 70%), linear-gradient(180deg, #fff 0%, #f8fdf9 100%); }
.hx-prompt { display: flex; align-items: center; gap: 12px; width: min(100%, 540px); height: 52px; margin: 34px auto 0; padding: 0 12px 0 16px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; text-align: left; box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 20px 40px -26px rgb(22 163 74 / 0.45); }
.hx-prompt svg { flex: none; width: 17px; height: 17px; fill: none; stroke: #16a34a; stroke-width: 1.8; }
.hx-prompt span { flex: 1; min-width: 0; color: var(--pg-ink); font-size: 15.5px; white-space: nowrap; overflow: hidden; }
.hx-prompt span::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--pg-ink); animation: pg-caret 1s steps(1) infinite; }
.hx-prompt kbd { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #000; color: #fff; font: 600 14px/1 var(--pg-mono); transition: transform 140ms; }
.hx-prompt.sent kbd { transform: scale(0.88); }
.hx-stage { display: grid; grid-template-columns: 1fr minmax(150px, 190px) 1fr; gap: clamp(14px, 3vw, 40px); align-items: center; width: min(100%, 760px); margin: 38px auto 0; transition: opacity 600ms, transform 700ms cubic-bezier(0.23, 1, 0.32, 1); }
.hx-stage.off { opacity: 0; transform: translateY(24px); }
.hx-arm { display: grid; justify-items: center; gap: 16px; }
.hx-arm .ph { width: 148px; font-size: 7.5px; box-shadow: 0 0 0 4px #1d1d1f, 0 0 0 5px #3a3a3c, 0 30px 50px -28px rgb(0 0 0 / 0.5); }
.hx-arm .pd-arm { top: 3%; right: 6%; }
.hx-arm__m { display: grid; gap: 4px; justify-items: center; }
.hx-arm__m small { color: var(--pg-muted); font: 500 12px/1 var(--pg-mono); }
.hx-arm__m b { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hx-arm__m span { color: var(--pg-faint); font-size: 12px; }
.hx-arm__m i, .hx-vs i { display: block; width: 120px; height: 6px; overflow: hidden; border-radius: 99px; background: #e8e8ea; }
.hx-arm__m u, .hx-vs u { display: block; height: 100%; width: 0; border-radius: inherit; background: #a1a1aa; text-decoration: none; }
.hx-arm__m--b u, .hx-vs u { background: #16a34a; }
.hx-vs { display: grid; gap: 10px; justify-items: center; text-align: center; }
.hx-vs small { color: var(--pg-muted); font: 500 12px/1.2 var(--pg-mono); }
.hx-vs b { font-size: 52px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hx-vs i { width: 150px; }
.hx-vs em { padding: 5px 12px; border-radius: 99px; background: #16a34a; color: #fff; font: normal 600 12.5px/1 inherit; opacity: 0; transform: scale(0.8); transition: opacity 300ms, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.hx-vs em.on { opacity: 1; transform: none; }

/* ---- ASO: the dashboard's App Store simulator, playing the climb ---- */
.hx-device { position: relative; display: grid; place-items: center; }
.hs-search { display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 10px; border-radius: 9px; background: #eeeef0; color: #111; font-size: 13px; }
.hs-search svg { color: #8e8e93; flex: none; }
.hs-search span { margin-left: auto; margin-right: -2px; color: #0a84ff; font-size: 12.5px; }
.hs-list { margin-top: 8px; transition: opacity 200ms; }
.hs-list.then { opacity: 0.75; }
.hs-row { display: grid; grid-template-columns: 16px 40px 1fr auto; align-items: center; gap: 8px; height: 58px; padding: 0 6px; border-bottom: 1px solid #f1f1f3; border-radius: 12px; }
.hs-n { color: #a1a1a6; font-size: 11px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.hs-icon { display: block; width: 40px; height: 40px; filter: drop-shadow(0 0 0.6px rgb(0 0 0 / 0.35)); }
.hs-icon[src*="candlenest"] { filter: none; }
.hs-meta { display: grid; min-width: 0; line-height: 1.22; }
.hs-meta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-meta small { color: #8e8e93; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-meta .st { color: #c7c7cc; font-size: 9px; letter-spacing: 1px; }
.hs-get { padding: 4px 13px; border-radius: 99px; background: #eef1f7; color: #0a84ff; font-size: 12px; font-weight: 700; }
.hs-row.you { position: relative; border-color: transparent; background: #fff7ed; box-shadow: 0 0 0 1.5px #fdba74, 0 10px 24px -12px rgb(234 88 12 / 0.5); }
.hs-row.you .hs-n { color: #ea580c; }
.hs-list.then .hs-row.you { background: #f7f7f8; box-shadow: 0 0 0 1px #e5e5ea; }
.hs-list.then .hs-row.you .hs-n { color: #a1a1a6; }
.hs-row.you.climb { animation: hs-climb 900ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes hs-climb { 0% { transform: translateY(120px); opacity: 0.2; } 60% { transform: translateY(-6px); opacity: 1; } 100% { transform: none; } }
.hs-up { padding: 4px 10px; border-radius: 99px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hs-up.was { background: #f1f1f3; color: #8e8e93; }
.hs-gap { padding: 9px 0; color: #a1a1a6; font-size: 11px; text-align: center; letter-spacing: 0.02em; }
.hs-gap::before, .hs-gap::after { content: "·  ·  ·"; margin: 0 8px; }
@media (prefers-reduced-motion: reduce) { .hs-row.you.climb { animation: none; } }

/* ---- Apple Ads: a dark control room ---- */
.hx-ads { background: radial-gradient(50% 55% at 18% 0%, rgb(59 130 246 / 0.28), transparent 70%), radial-gradient(45% 50% at 88% 100%, rgb(99 102 241 / 0.22), transparent 70%), #0b0d12; color: #f4f4f5; }
.hx-ads::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.07) 1px, transparent 0); background-size: 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hx-ads h1 { color: #fafafa; }
.hx-ads .pg-lede { color: #a1a1aa; }
.hx-ads .pg-crumb { border-color: rgb(255 255 255 / 0.14); background: rgb(255 255 255 / 0.05); color: #a1a1aa; }
.hx-ads .pg-crumb b { color: #fafafa; }
.hx-ads .pg-btn { border-color: rgb(255 255 255 / 0.18); background: transparent; color: #fafafa; }
.hx-ads .pg-btn:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.3); }
.hx-ads .pg-btn--dark { border-color: #fff; background: #fff; color: #000 !important; }
.hx-ads .pg-btn--dark:hover { background: #e5e5e5; }
.hx-flow { position: relative; width: min(100%, 760px); margin: 44px auto 0; padding: 16px 20px 18px; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 20px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 40px 80px -40px rgb(0 0 0 / 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-align: left; }
.hx-flow__head { display: flex; justify-content: space-between; padding: 0 0 12px; color: #71717a; font: 500 11px/1 var(--pg-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.hx-lane { display: grid; grid-template-columns: 110px 1fr 64px 52px; gap: 14px; align-items: center; height: 50px; border-top: 1px solid rgb(255 255 255 / 0.07); font-size: 14px; }
.hx-lane b { font-weight: 500; }
.hx-track { display: block; height: 10px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 0.08); }
.hx-track u { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #3b82f6, #6366f1); text-decoration: none; transition: width 900ms cubic-bezier(0.65, 0, 0.35, 1); }
.hx-track u.bad { background: linear-gradient(90deg, #52525b, #71717a); }
.hx-lane span { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-lane em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.hx-lane .up { color: #4ade80; } .hx-lane .dn { color: #f87171; }
.hx-flow__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.06); color: #d4d4d8; font-size: 13.5px; }
.hx-flow__foot kbd { flex: none; padding: 7px 16px; border-radius: 9px; background: #fff; color: #000; font: 600 13px/1 inherit; transition: transform 140ms, background-color 200ms; }
.hx-flow__foot kbd.press { transform: scale(0.92); }
.hx-flow__foot kbd.undo { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3); }
.hx-chip { position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 12px; border-radius: 99px; background: #fff; color: #1d4ed8; font: 700 13px/1 inherit; box-shadow: 0 0 0 4px rgb(96 165 250 / 0.35), 0 10px 24px -6px rgb(59 130 246 / 0.7); opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .hx-split, .hx-split--rev { grid-template-columns: 1fr; }
  .hx-split--rev .hx-device { order: 0; }
  .hx-device { margin-top: 12px; }
  .hx-stage { grid-template-columns: 1fr 1fr; }
  .hx-vs { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  .hx-lane { grid-template-columns: 82px 1fr 52px 40px; gap: 8px; font-size: 13px; }
  .hx-flow__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .hx-arm .ph { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .hx-live i, .hx-prompt span::after { animation: none; } .hx-feed li.new { animation: none; } .hx-track u { transition: none; } }
/* the dark hero has no white top fade over it */
main.pg:has(.hx-ads)::before { content: none; }


/* the same simulator, smaller, inside a tile */
.sb-mock--sim { height: 310px; padding-top: 24px; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.sb-mock--sim { margin-bottom: 16px; }

/* ASO hero: the phone is cut off by the hero's bottom line, and the text is centred against it */

/* ASO hero: just the phone, no card behind it */


/* ---- the phone: Rafael Fernandez's iPhone 18 Pro vector (CC BY-SA 4.0), unmodified, with the screen laid over it ---- */
.hx-aso { padding-bottom: 0; background: radial-gradient(55% 70% at 15% 45%, #ffeadb 0%, transparent 70%), linear-gradient(180deg, #fff 0%, #fffaf6 100%); }
.hx-aso .hx-split { align-items: end; }
.hx-aso .hx-copy { align-self: center; padding-bottom: clamp(40px, 6vw, 72px); }
.hx-aso .hx-device { align-self: end; margin-bottom: -150px; }
.hp { position: relative; width: min(100%, var(--w, 316px)); aspect-ratio: 73 / 150; margin: 0 auto; filter: drop-shadow(0 30px 40px rgb(234 88 12 / 0.28)); }
.hp__body { position: absolute; inset: 0; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.hp__screen { position: absolute; left: 4.18%; top: 1.667%; width: 91.64%; height: 96.67%; padding: 13.4% 12px 0; overflow: hidden; border-radius: 15.7% / 7.24%; background: #fff; }
.hp__island { position: absolute; left: 39.32%; top: 3.307%; width: 21.37%; height: 4.133%; border-radius: 99px; background: #000; }
.hp__island::after { content: ""; position: absolute; left: 80.8%; top: 50%; width: 22.8%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 36%, #232a52 0 16%, #0c0c0c 52%, #000 100%); }
.sb-mock--sim .hp { --w: 252px; }
@media (max-width: 900px) { .hx-aso .hx-copy { padding-bottom: 0; } .hx-aso .hx-device { margin-top: 28px; margin-bottom: -120px; } }
/* ASO hero: the phone leans 2 degrees, pivoting where the hero cuts it off */
.hx-aso .hp { transform: rotate(-2deg); transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .hx-aso .hp { transform: rotate(-2deg); } }

/* ---------- tutorials ---------- */
.tt-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tt-hero h1 { max-width: 11ch; }
.tt-hero .pg-lede { max-width: 30rem; text-wrap: pretty; }
.tt-hero .pg-ask { width: 100%; }

.tt-code { margin: 0; overflow: hidden; border-radius: 14px; background: var(--pg-graphite); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 30px 60px -34px rgb(0 0 0 / 0.55); text-align: left; }
.tt-code__bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / 0.07); color: #a1a1aa; font: 500 12px/1 var(--pg-mono); }
.tt-code__bar b { font-weight: 500; }
.tt-dots { display: flex; gap: 6px; }
.tt-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / 0.14); }
.tt-lines { margin: 0; padding: 0; list-style: none; }
.tt-lines li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 15px 18px; border-bottom: 1px solid rgb(255 255 255 / 0.06); animation: tt-in 520ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(var(--d) * 420ms + 250ms); }
.tt-no { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 1px solid rgb(255 255 255 / 0.22); border-radius: 50%; color: #d4d4d8; font: 500 12px/1 var(--pg-mono); text-decoration: none; transition: background-color 150ms, color 150ms; }
.tt-no:hover { background: #fff; border-color: #fff; color: #18181b; }
.tt-lines pre { margin: 0; overflow-x: auto; color: #e4e4e7; font: 400 12.5px/1.7 var(--pg-mono); white-space: pre; }
.tt-lines .c { color: #71717a; }
.tt-lines .k { color: #c4b5fd; }
.tt-lines .f { color: #93c5fd; }
.tt-lines .s { color: #86efac; }
.tt-result { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: rgb(34 197 94 / 0.1); color: #86efac; font-size: 13.5px; font-weight: 500; animation: tt-in 520ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: 2.1s; }
.tt-result i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / 0.22); }
@keyframes tt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tt-path { position: relative; margin: 0; padding: 0; list-style: none; }
.tt-path li { position: relative; }
.tt-path li:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 50%; width: 1px; height: 100%; background: var(--pg-line); }
.tt-path a { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 20px; align-items: center; margin: 0 -16px; padding: 18px 16px; border-radius: 14px; text-decoration: none; color: inherit; transition: background-color 150ms; }
.tt-path a:hover { background: var(--pg-surface); }
.tt-n { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--pg-line); border-radius: 50%; background: #fff; color: var(--pg-subs); font: 400 21px/1 var(--pg-num); transition: background-color 150ms, color 150ms, border-color 150ms; }
.tt-path a:hover .tt-n { border-color: var(--pg-subs); background: var(--pg-subs); color: #fff; }
.tt-t b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.tt-t small { display: block; margin-top: 3px; color: var(--pg-muted); font-size: 14.5px; line-height: 1.45; }
.tt-api { padding: 4px 8px; border: 1px solid var(--pg-line); border-radius: 6px; background: #fff; color: var(--pg-ink2); font: 500 12px/1.2 var(--pg-mono); }
.tt-go { width: 16px; height: 16px; fill: none; stroke: var(--c, var(--pg-ink)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translateX(-4px); transition: opacity 150ms, transform 150ms; }
.tt-path a:hover .tt-go, .tt-rows a:hover .tt-go, .tt-path a:focus-visible .tt-go, .tt-rows a:focus-visible .tt-go { opacity: 1; transform: none; }

.tt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.tt-bar h2 { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; }
.tt-search { display: flex; align-items: center; gap: 9px; width: min(100%, 320px); height: 42px; padding: 0 13px; border: 1px solid var(--pg-line); border-radius: 11px; background: #fff; transition: border-color 150ms; }
.tt-search:focus-within { border-color: var(--pg-ink); }
.tt-search svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--pg-muted); stroke-width: 2; stroke-linecap: round; }
.tt-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--pg-ink); font: 400 15px/1 inherit; -webkit-appearance: none; appearance: none; }
.tt-search small { flex: none; color: var(--pg-faint); font: 500 11.5px/1 var(--pg-mono); }

.tt-group { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 34px 0; border-top: 1px solid var(--pg-line); }
.tt-group[hidden], .tt-rows li[hidden], .tt-empty[hidden] { display: none; }
.tt-gh { align-self: start; position: sticky; top: 92px; }
.tt-gh h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.tt-gh p { margin: 6px 0 0; color: var(--pg-muted); font-size: 14.5px; line-height: 1.5; }
.tt-rows { margin: 0; padding: 0; list-style: none; }
.tt-rows li + li { border-top: 1px solid var(--pg-line); }
.tt-rows a { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 16px; align-items: center; margin: 0 -14px; padding: 16px 14px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color 150ms; }
.tt-rows a:hover { background: #fff; }
.tt-rows .tt-t b { font-size: 16px; }
.tt-empty { margin: 30px 0 0; color: var(--pg-muted); font-size: 15px; }

@media (max-width: 900px) {
  .tt-hero__in { grid-template-columns: 1fr; }
  .tt-group { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .tt-gh { position: static; }
}
@media (max-width: 700px) {
  .tt-path a { grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .tt-api { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-lines li, .tt-result { animation: none; }
  .tt-go, .tt-no, .tt-n { transition: none; }
}

/* ---------- services ---------- */
.sx-hero { padding-bottom: 0; }
.sx-hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 1.4rem + 5vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; }
.sx-hero .pg-lede { max-width: 34rem; text-wrap: pretty; }
.sx-hero .pg-btn { height: 44px; padding: 0 18px; }
#pick, #book { scroll-margin-top: 84px; }
.sx-head { margin-bottom: 36px; }
.sx-lane h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.sx-lane h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pg-ink); }
.sx-lane--agent h2::before { background: var(--pg-subs); }
.sx-lane ul { margin: 0; padding: 0; list-style: none; }
.sx-lane li { padding: 10px 0; border-top: 1px solid var(--pg-line); color: var(--pg-ink2); font-size: 15px; line-height: 1.4; }
.sx-lane--agent li { border-top-color: color-mix(in srgb, var(--pg-subs) 16%, #fff); }

.sx-pick { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sx-tabs { grid-column: 1; grid-row: 1; display: grid; gap: 8px; position: sticky; top: 92px; }
.sx-tab { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 150ms, box-shadow 150ms; }
.sx-tab .pg-tile { margin: 0; }
.sx-tab b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.sx-tab small { display: block; margin-top: 2px; color: var(--pg-muted); font-size: 13.5px; line-height: 1.4; }
.sx-tab:hover { border-color: #d4d4d4; }
.sx-tab[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 16px 30px -24px var(--c); }
.sx-pane { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 3vw, 40px); align-items: start; }
.sx-pane[hidden] { display: none; }
.sx-copy h3 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.875rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.03em; }
.sx-copy > p { margin: 14px 0 0; color: var(--pg-ink2); font-size: 16.5px; line-height: 1.6; }
.sx-art { padding: 20px 22px 22px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -30px rgb(0 0 0 / 0.3); }
.sx-art__t { margin: 0 0 12px; font-size: 14px; font-weight: 500; }
.sx-art__n { margin: 16px 0 0; color: var(--pg-muted); font-size: 13.5px; line-height: 1.45; }
.sx-phases { margin: 0; padding: 0; list-style: none; counter-reset: ph; }
.sx-phases li { counter-increment: ph; display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--pg-line); font-size: 14.5px; }
.sx-phases li::before { content: counter(ph); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 62%, #000); font: 500 12px/1 var(--pg-mono); }
.sx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sx-table th { padding: 0 0 8px; color: var(--pg-muted); font-size: 13px; font-weight: 500; text-align: left; }
.sx-table td { padding: 10px 12px 10px 0; border-top: 1px solid var(--pg-line); vertical-align: top; }
.sx-table td:last-child { padding-right: 0; color: var(--pg-ink2); }
.sx-fields { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sx-fields li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 12px; align-items: center; font-size: 14.5px; }
.sx-fields i { grid-column: 2; grid-row: 1; display: block; width: var(--w); height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 70%, #fff); }
.sx-fields span { grid-column: 1; grid-row: 1; }
.sx-fields em { grid-column: 2; grid-row: 2; color: var(--pg-muted); font: normal 400 12.5px/1.3 var(--pg-mono); }
.sx-camps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sx-camps li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 11px 14px; border: 1px solid var(--pg-line); border-left: 3px solid var(--k, var(--c)); border-radius: 10px; }
.sx-camps li:nth-child(1) { --k: #8b5cf6; } .sx-camps li:nth-child(2) { --k: #ea580c; } .sx-camps li:nth-child(3) { --k: #3b82f6; }
.sx-camps b { font-size: 14.5px; font-weight: 500; }
.sx-camps span { color: var(--pg-muted); font-size: 13.5px; }

.sx-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.sx-steps::before { content: ""; position: absolute; left: 9px; right: 0; top: 9px; height: 1px; background: #d4d4d4; }
.sx-steps li { position: relative; padding-top: 40px; }
.sx-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border: 1.5px solid var(--pg-ink); border-radius: 50%; background: var(--pg-surface); }
.sx-steps li:last-child::before { background: var(--pg-ink); }
.sx-steps small { display: block; margin-bottom: 4px; color: var(--pg-muted); font-size: 13.5px; }
.sx-steps b { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.sx-steps .pg-p { max-width: 28ch; }

@media (max-width: 960px) {
  .sx-pick { grid-template-columns: 1fr; }
  .sx-tabs { grid-column: 1; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-pane { grid-column: 1; grid-row: 2; }
}
@media (max-width: 700px) {
  .sx-tabs { grid-template-columns: 1fr; }
  .sx-pane { grid-template-columns: 1fr; }
  .sx-steps { grid-template-columns: 1fr; gap: 24px; }
  .sx-steps::before { display: none; }
  .sx-steps li { padding: 0 0 0 36px; }
}

/* services hero: text on the left, the team, you and the agent as one card on the right, cut by the hero's bottom line */
.sx-hero__in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.sx-hero__text { padding-bottom: clamp(40px, 6vw, 72px); }
.sx-lanes { margin: 0; overflow: hidden; border: 1px solid var(--pg-line); border-bottom: 0; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -1px 0 #fff, 0 24px 60px -36px rgb(0 0 0 / 0.3); text-align: left; }
.sx-lane { padding: 22px 24px 24px; }
.sx-lane--agent { background: color-mix(in srgb, var(--pg-subs) 6%, #fff); }
.sx-lane--agent li { border-top-color: color-mix(in srgb, var(--pg-subs) 16%, #fff); }
.sx-gate { position: relative; display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 14px 24px; border-block: 1px solid var(--pg-line); background: var(--pg-surface); text-align: left; }
.sx-gate::before { content: ""; position: absolute; left: 45px; top: -1px; bottom: -1px; border-left: 1.5px dashed #cfcfcf; }
.sx-gate__badge { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 0; border: 1px solid var(--pg-line); border-radius: 50%; background: #fff; color: var(--pg-ink); box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.4); }
.sx-gate__badge svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-gate b { display: block; font-size: 14.5px; font-weight: 500; }
.sx-gate small { display: block; margin-top: 2px; color: var(--pg-muted); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 900px) {
  .sx-hero__in { grid-template-columns: 1fr; align-items: start; }
  .sx-hero__text { padding-bottom: 0; }
  .sx-lanes { margin-top: 40px; }
}

/* ---------- compare: Xee vs RevenueCat ---------- */
.cv-vs { display: flex; align-items: center; justify-content: center; margin: 30px auto 26px; }
.cv-vs .cv-x { width: clamp(150px, 26vw, 300px); height: 84px; margin: 0 -1px; fill: none; stroke: #d4d4d4; stroke-width: 1.2; }
.cv-x path { vector-effect: non-scaling-stroke; }
.cv-tile { position: relative; z-index: 1; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; font: 700 28px/1 var(--font-sans, inherit); }
.cv-tile--xee { border: 1px solid var(--pg-line); background: #fff; box-shadow: 0 18px 36px -22px rgb(0 0 0 / 0.4); }
.cv-tile--xee img { width: 40px; height: 40px; }
.cv-tile--rc { border: 1px solid var(--pg-line); background: #f3f3f3; color: #525252; }
.cv-vs--s { margin: 0 auto; }
.cv-vs--s .cv-tile { width: 48px; height: 48px; border-radius: 13px; font-size: 18px; }
.cv-vs--s .cv-tile--xee img { width: 22px; height: 22px; }
.cv-vs--s .cv-x { width: 120px; height: 48px; }

.cv-calc { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--pg-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -38px rgb(0 0 0 / 0.35); }
.cv-calc__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px 16px; }
.cv-calc__top label { color: var(--pg-muted); font-size: 14.5px; }
.cv-mtr { font: 400 clamp(2rem, 1.5rem + 2vw, 2.75rem)/1 var(--pg-num); letter-spacing: -0.02em; }
.cv-range { grid-column: 1 / -1; width: 100%; height: 28px; margin: 4px 0 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; --k: 16%; }
.cv-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--pg-subs) var(--k), #e5e5e5 var(--k)); }
.cv-range::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--pg-subs) var(--k), #e5e5e5 var(--k)); }
.cv-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 2px solid var(--pg-ink); border-radius: 50%; background: #fff; box-shadow: 0 4px 10px -3px rgb(0 0 0 / 0.35); }
.cv-range::-moz-range-thumb { width: 22px; height: 22px; border: 2px solid var(--pg-ink); border-radius: 50%; background: #fff; box-shadow: 0 4px 10px -3px rgb(0 0 0 / 0.35); }
.cv-range:focus-visible { outline: 2px solid var(--pg-ink); outline-offset: 4px; }
.cv-bills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.cv-bill { display: grid; gap: 2px; padding: 16px 18px 18px; border: 1px solid var(--pg-line); border-radius: 14px; }
.cv-bill--xee { border: 1.5px solid var(--pg-subs); background: color-mix(in srgb, var(--pg-subs) 5%, #fff); }
.cv-bill span { color: var(--pg-muted); font-size: 14px; font-weight: 500; }
.cv-bill b { font: 400 clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem)/1.05 var(--pg-num); letter-spacing: -0.02em; }
.cv-bill small { color: var(--pg-muted); font-size: 13.5px; }
.cv-verdict { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--pg-surface); font-size: 15.5px; font-weight: 500; }
.cv-verdict[data-tone="xee"] { background: color-mix(in srgb, var(--pg-tests) 10%, #fff); color: #166534; }
.cv-verdict[data-tone="rc"] { background: #f5f5f5; color: var(--pg-ink2); }
.cv-chart { display: block; width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.cv-chart text { fill: var(--pg-muted); font: 500 11px/1 var(--pg-mono); }
.cv-chart .cv-g { stroke: #eee; stroke-width: 1; }
.cv-chart .cv-l { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cv-chart .cv-l--xee { stroke: var(--pg-subs); }
.cv-chart .cv-l--rc { stroke: #737373; stroke-width: 2; }
.cv-chart .cv-l--dash { stroke-dasharray: 5 6; }
.cv-chart .cv-t--xee { fill: #6d3fe0; }
.cv-chart .cv-mark { stroke: var(--pg-ink); stroke-width: 1; stroke-dasharray: 3 4; }
.cv-chart .cv-d { stroke: #fff; stroke-width: 2; }
.cv-chart .cv-d--xee { fill: var(--pg-subs); }
.cv-chart .cv-d--open { fill: #fff; stroke: var(--pg-subs); }
.cv-chart .cv-d--rc { fill: #737373; }

.cv-tablewrap { overflow-x: auto; border: 1px solid var(--pg-line); border-radius: 20px; background: #fff; }
.cv-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cv-table th, .cv-table td { padding: 17px 22px; border-bottom: 1px solid var(--pg-line); text-align: left; vertical-align: middle; }
.cv-table thead th { padding-block: 20px; }
.cv-table tbody tr:last-child > * { border-bottom: 0; }
.cv-table col, .cv-table thead th:first-child, .cv-table tbody th { width: 38%; }
.cv-table tbody th b { display: block; font-size: 15.5px; font-weight: 500; }
.cv-table tbody th small { display: block; margin-top: 2px; color: var(--pg-muted); font-size: 13.5px; font-weight: 400; line-height: 1.4; }
.cv-table td { color: var(--pg-ink2); }
.cv-th-t { color: var(--pg-muted); font-size: 14px; font-weight: 500; }
.cv-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.cv-table .cv-xee { border-inline: 1.5px solid var(--pg-subs); background: color-mix(in srgb, var(--pg-subs) 4%, #fff); color: var(--pg-ink); }
.cv-table thead .cv-xee { border-top: 1.5px solid var(--pg-subs); border-radius: 14px 14px 0 0; }
.cv-table tbody tr:last-child .cv-xee { border-bottom: 1.5px solid var(--pg-subs); border-radius: 0 0 14px 14px; }
.cv-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--pg-ink); vertical-align: middle; }
.cv-yes svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-unk { color: var(--pg-muted); }

.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.cv-prose { max-width: 42rem; }
.cv-prose > p, .cv-side p { color: var(--pg-ink2); font-size: 17px; line-height: 1.7; }
.cv-prose > p { margin: 0 0 16px; }
.cv-prose h2 { margin: 56px 0 14px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; scroll-margin-top: 88px; }
.cv-prose a { text-decoration: underline; text-underline-offset: 3px; }
#bill, #table { scroll-margin-top: 80px; }
.cv-callout { margin: 0 0 8px !important; padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--pg-tests) 30%, #fff); border-radius: 14px; background: color-mix(in srgb, var(--pg-tests) 7%, #fff); font-size: 16px !important; }
.cv-side { margin: 16px 0; padding: 2px 0 2px 20px; border-left: 3px solid #d4d4d4; }
.cv-side--xee { border-left-color: var(--pg-subs); }
.cv-side h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.cv-side p { margin: 0; }
.cv-code { margin: 22px 0; }
.cv-phases { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: ph; max-width: 30rem; }
.cv-phases li { counter-increment: ph; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pg-line); font-size: 15.5px; }
.cv-phases li:last-child { border-bottom: 1px solid var(--pg-line); }
.cv-phases li::before { content: counter(ph); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--pg-subs) 12%, #fff); color: #5b2fc7; font: 500 12px/1 var(--pg-mono); }
.cv-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.cv-pick__c { padding: 20px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; }
.cv-pick__c--xee { border-color: color-mix(in srgb, var(--pg-subs) 45%, #fff); background: color-mix(in srgb, var(--pg-subs) 4%, #fff); }
.cv-pick__c h3 { margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.cv-pick__c p { margin: 0; color: var(--pg-ink2); font-size: 15.5px; line-height: 1.6; }

.cv-aside { position: sticky; top: 92px; display: grid; gap: 22px; }
.cv-toc p { margin: 0 0 10px; color: var(--pg-muted); font-size: 13.5px; font-weight: 500; }
.cv-toc ol { margin: 0; padding: 0; list-style: none; }
.cv-toc a { display: block; padding: 7px 0 7px 14px; border-left: 1.5px solid var(--pg-line); color: var(--pg-muted); font-size: 14.5px; text-decoration: none; transition: color 150ms, border-color 150ms; }
.cv-toc a:hover { color: var(--pg-ink); }
.cv-toc a[aria-current] { border-left-color: var(--pg-ink); color: var(--pg-ink); font-weight: 500; }
.cv-cta { display: grid; gap: 6px; justify-items: start; padding: 18px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -30px rgb(0 0 0 / 0.3); }
.cv-cta__mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border: 1px solid var(--pg-line); border-radius: 11px; }
.cv-cta b { font-size: 16px; font-weight: 500; }
.cv-cta p { margin: 0 0 8px; color: var(--pg-muted); font-size: 14.5px; line-height: 1.45; }
.cv-cta .pg-btn { width: 100%; justify-content: center; }

.cv-others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cv-other { display: grid; gap: 22px; justify-items: start; padding: 22px; border: 1px solid var(--pg-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: border-color 150ms, box-shadow 150ms; }
.cv-other:hover { border-color: #d4d4d4; box-shadow: 0 18px 36px -26px rgb(0 0 0 / 0.35); }
.cv-other__t { font-size: 16.5px; font-weight: 500; }
.cv-other .cv-vs { justify-self: center; }


@media (max-width: 960px) {
  .cv-layout { grid-template-columns: 1fr; }
  .cv-aside { position: static; }
  .cv-toc { display: none; }
}
@media (max-width: 700px) {
  .cv-bills, .cv-pick, .cv-others { grid-template-columns: 1fr; }
  .cv-tile { width: 68px; height: 68px; border-radius: 18px; }
  .cv-vs .cv-x { height: 68px; }
}
@media (prefers-reduced-motion: reduce) { .cv-toc a, .cv-other { transition: none; } }

/* the bill section fits one screen: controls on the left, the chart on the right */
.cv-billsec { padding-block: 36px 32px; }
.cv-billsec .pg-head { margin-bottom: 18px; }
.cv-billsec .pg-head h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); }
.cv-billsec .pg-head p { margin-top: 6px; font-size: 15.5px; }
.cv-calc { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: 20px 24px; }
.cv-calc__ctl { display: grid; gap: 14px; }
.cv-mtr { font-size: 2rem; }
.cv-range { margin: 0; }
.cv-bills { margin-top: 0; gap: 10px; }
.cv-bill { padding: 12px 14px 14px; }
.cv-bill b { font-size: 2.25rem; }
.cv-verdict { padding: 10px 14px; font-size: 14.5px; }
.cv-chart { margin: 0; }
.cv-billsec .cp-note { max-width: none; margin-top: 12px; text-align: left; }
@media (max-width: 860px) { .cv-calc { grid-template-columns: 1fr; } }

/* no public price to chart: Xee's own bands instead */
.cv-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cv-band { display: grid; gap: 2px; padding: 18px 20px 20px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; }
.cv-band--xee { border: 1.5px solid var(--pg-subs); background: color-mix(in srgb, var(--pg-subs) 5%, #fff); }
.cv-band span { color: var(--pg-muted); font-size: 14px; font-weight: 500; }
.cv-band b { font: 400 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1.1 var(--pg-num); letter-spacing: -0.02em; }
.cv-band small { color: var(--pg-muted); font-size: 13.5px; }
@media (max-width: 860px) { .cv-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cv-bands { grid-template-columns: 1fr; } }

/* five other tools to compare with: as many columns as fit */
.cv-others { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cv-other { padding: 18px; gap: 18px; }
.cv-other__t { font-size: 15px; }
.cv-other .cv-vs--s .cv-x { width: 52px; }
@media (max-width: 1100px) { .cv-others { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cv-other .cv-vs--s .cv-x { width: 90px; } }
@media (max-width: 700px) { .cv-others { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cv-other .cv-vs--s .cv-x { width: 40px; } }
@media (max-width: 480px) { .cv-others { grid-template-columns: 1fr; } .cv-other .cv-vs--s .cv-x { width: 90px; } }

/* compare hero: a soft panel with a grid, colour tints and halftone patches; two big logos in shapes that meet like an hourglass */
section.pg-hero.cv-hero {
  margin: 18px var(--pg-gutter) 0;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(44px, 6vw, 72px);
  border: 1px solid #ececec;
  border-radius: 28px;
  background:
    radial-gradient(40% 56% at 14% 96%, rgb(167 139 250 / 0.42), transparent 74%),
    radial-gradient(34% 48% at 50% 62%, rgb(253 186 160 / 0.32), transparent 72%),
    radial-gradient(40% 56% at 90% 92%, rgb(134 239 172 / 0.42), transparent 74%),
    #f8f8f8;
}
body:has(.cv-hero) .site-frame::before { display: none; }
.cv-hero::before {
  background-image: linear-gradient(rgb(0 0 0 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(0 0 0 / 0.07) 1px, transparent 1px);
  background-size: 78px 78px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 46%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 46%, #000 100%);
}
.cv-stage { position: relative; width: min(1000px, 100%); margin: 0 auto clamp(20px, 3vw, 36px); aspect-ratio: 1000 / 232; }
.cv-stage::before, .cv-stage::after { content: ""; position: absolute; top: 2%; bottom: 2%; width: 44%; background-size: 8px 8px; -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); }
.cv-stage::before { left: -4%; background-image: radial-gradient(circle, rgb(124 92 220 / 0.6) 1.2px, transparent 1.7px); }
.cv-stage::after { right: -4%; background-image: radial-gradient(circle, rgb(60 170 100 / 0.55) 1.2px, transparent 1.7px); }
.cv-shapes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.cv-shapes path { fill: rgb(255 255 255 / 0.5); stroke: #d2d2d2; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cv-logo { position: absolute; top: 50%; width: clamp(52px, 9.6%, 96px); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); filter: drop-shadow(0 14px 20px rgb(0 0 0 / 0.16)); }
.cv-logo--xee { left: 37.5%; }
.cv-logo--rival { left: 62.5%; border-radius: 22%; }
.cv-hero h1 { margin-top: 0; }
.cv-tile--img { border: 0; background: none; box-shadow: none; filter: drop-shadow(0 8px 12px rgb(0 0 0 / 0.14)); }
.cv-tile--img img { width: 100%; height: 100%; border-radius: 22%; object-fit: cover; }
@media (max-width: 700px) { .cv-stage::before, .cv-stage::after { background-size: 6px 6px; } }


/* ---------- solutions: the role names are the selector, each role gets its own path ---------- */
.so-hero { padding-bottom: 0; }
.so-hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.so-hero .pg-lede { max-width: 34rem; text-wrap: pretty; }
.so-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--pg-line); border-radius: 18px; background: var(--pg-line); overflow: hidden; text-align: left; }
.so-role { position: relative; display: grid; align-content: start; gap: 8px; min-height: 148px; padding: 22px 24px 24px; border: 0; background: var(--pg-surface); color: var(--pg-muted); font-family: inherit; text-align: left; cursor: pointer; transition: background-color 180ms, color 180ms; }
.so-role::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1); }
.so-role__n::before { content: "0"; }
.so-role__n { color: var(--c); font: 500 13px/1 var(--pg-mono); opacity: 0.6; transition: opacity 180ms; }
.so-role b { margin-top: 6px; font-size: clamp(1.125rem, 0.95rem + 0.55vw, 1.375rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.so-role small { max-width: 24ch; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.so-role:hover { background: #fff; color: var(--pg-ink2); }
.so-role:hover .so-role__n { opacity: 0.85; }
.so-role[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 6%, #fff); color: var(--pg-ink); }
.so-role[aria-pressed="true"] small { color: var(--pg-ink2); }
.so-role[aria-pressed="true"]::after { transform: none; }
.so-role[aria-pressed="true"] .so-role__n { opacity: 1; }
.so-stage { padding-top: clamp(36px, 5vw, 64px); }
.so-pane { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: start; animation: so-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
.so-pane[hidden] { display: none; }
@keyframes so-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.so-main h2 { margin: 0; max-width: 20ch; font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.so-lead { max-width: 38rem; margin: 18px 0 0; color: var(--pg-ink2); font-size: 18px; line-height: 1.6; }
.so-main h3, .so-side h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.so-main > h3 { margin-top: 40px; }
.so-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; border-top: 1px solid var(--pg-line); }
.so-steps li { counter-increment: st; border-bottom: 1px solid var(--pg-line); }
.so-steps a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; align-items: baseline; padding: 18px 0; color: inherit; text-decoration: none; }
.so-steps a::after { content: "→"; grid-row: span 2; grid-column: 3; align-self: center; color: var(--c); font-size: 20px; opacity: 0; transform: translateX(-8px); transition: opacity 180ms, transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.so-steps a:hover::after, .so-steps a:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .so-steps a::after { opacity: 0.5; transform: none; } }
.so-steps a::before { content: counter(st); grid-row: span 2; color: var(--c); font: 400 30px/1 var(--pg-num); }
.so-steps b { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 150ms; }
.so-steps a:hover b { text-decoration-color: currentColor; }
.so-steps b, .so-steps span { grid-column: 2; }
.so-steps span { margin-top: 3px; color: var(--pg-muted); font-size: 14.5px; line-height: 1.5; }
.so-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.so-split > div { padding: 20px 22px 10px; border: 1px solid var(--pg-line); border-radius: 16px; background: #fff; }
.so-split > div:first-child { border-color: color-mix(in srgb, var(--c) 26%, var(--pg-line)); background: color-mix(in srgb, var(--c) 6%, #fff); }
.so-split h3 { padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb, var(--c) 30%, var(--pg-line)); }
.so-split ul { margin: 0; padding: 0; list-style: none; }
.so-split li { padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--pg-line) 80%, transparent); color: var(--pg-ink2); font-size: 15px; line-height: 1.45; }
.so-split li:last-child { border-bottom: 0; }
.so-main .pg-actions { justify-content: flex-start; margin-top: 32px; }
.so-side { display: grid; gap: 28px; position: sticky; top: 92px; }
.so-win { box-shadow: 0 26px 50px -34px rgb(0 0 0 / 0.4); }
.so-odds { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; color: var(--pg-muted); font-size: 12.5px; }
.so-odds em { color: var(--pg-ink); font-style: normal; font-weight: 600; }
.so-plan { padding: 22px 24px 20px; border: 1px solid color-mix(in srgb, var(--c) 28%, var(--pg-line)); border-radius: 16px; background: color-mix(in srgb, var(--c) 5%, #fff); }
.so-plan h3 { margin-bottom: 10px; color: var(--pg-muted); font: 500 12.5px/1 var(--pg-mono); letter-spacing: 0; }
.so-plan p { margin: 0; color: var(--pg-ink2); font-size: 15px; line-height: 1.5; }
.so-plan p b { color: var(--pg-ink); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.so-plan ul { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid color-mix(in srgb, var(--c) 20%, var(--pg-line)); list-style: none; display: grid; gap: 7px; }
.so-plan li { position: relative; padding-left: 22px; color: var(--pg-ink2); font-size: 14.5px; line-height: 1.4; }
.so-plan li::before { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 9px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.so-plan a { display: inline-block; margin-top: 16px; color: var(--pg-ink); font-size: 14.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.so-faq.pg-faq { max-width: none; margin: 0; border-top: 0; }
.so-faq h3 { margin-bottom: 4px; }
.so-faq details:first-of-type { border-top: 1px solid var(--pg-line); }
.so-faq summary { padding: 14px 2px; font-size: 15px; }
.so-faq details p { font-size: 14.5px; }
.so-note { margin: 40px 0 0; color: var(--pg-muted); font-size: 13px; }
.so-where { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pg-line); }
.so-where li { border-bottom: 1px solid var(--pg-line); }
.so-where a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 20px; align-items: center; margin: 0 -8px; padding: 22px 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background-color 150ms; }
.so-where a:hover { background: #fff; }
.so-where .pg-tile { margin: 0; }
.so-where__t b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.so-where__t small { display: block; max-width: 46rem; margin-top: 3px; color: var(--pg-muted); font-size: 14.5px; line-height: 1.45; }
.so-where__go { font-size: 14.5px; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 150ms; }
.so-where a:hover .so-where__go { text-decoration-color: currentColor; }
.so-where__go::after { content: "→"; display: inline-block; margin-left: 6px; text-decoration: none; transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.so-where a:hover .so-where__go::after { transform: translateX(4px); }
@media (max-width: 960px) {
  .so-pane { grid-template-columns: 1fr; }
  .so-side { position: static; }
  .so-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so-role { min-height: 0; }
}
@media (max-width: 600px) {
  .so-split { grid-template-columns: 1fr; }
  .so-pick { border-radius: 14px; }
  .so-role { padding: 16px 16px 18px; gap: 6px; }
  .so-role small { font-size: 13px; }
  .so-where a { grid-template-columns: 36px minmax(0, 1fr); }
  .so-where__go { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .so-pane { animation: none; } .so-role, .so-role::after, .so-steps b, .so-where a { transition: none; } }

/* ---------- solutions: use cases, each role with charts, a dashboard picture and four cases ---------- */
.uc-role { padding: 44px 0 36px; border-top: 1px solid var(--pg-line); }
.uc-name { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--pg-line); font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
.uc-name::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.uc-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 32px; }
.uc-charts { display: grid; gap: 28px; }
.uc-chart { margin: 0; padding: 18px 20px 14px; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; }
.uc-chart figcaption { margin-bottom: 14px; color: var(--pg-ink); font-size: 14.5px; font-weight: 500; }
.uc-chart cite { display: block; margin-top: 12px; font-style: normal; font-size: 12.5px; }
.uc-chart cite a { color: var(--pg-muted); text-decoration: underline; text-underline-offset: 3px; }
.uc-bars { display: grid; gap: 10px; }
.uc-bar { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 4.5rem; align-items: center; gap: 12px; font-size: 14px; }
.uc-bar span { color: var(--pg-ink2); }
.uc-bar i { display: block; width: var(--w); height: 14px; border-radius: 4px; background: var(--c); transform-origin: left; }
.uc-bar--dim i { background: color-mix(in srgb, var(--c) 32%, #fff); }
.uc-bar b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.uc-bars--range .uc-bar { grid-template-columns: 8.5rem minmax(0, 1fr) 6rem; }
.uc-bars--range .uc-bar i { margin-left: var(--a); width: var(--w); min-width: 0; }
.uc-bars--range { position: relative; }
.uc-split { display: flex; height: 40px; overflow: hidden; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 13.5px; }
.uc-split span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; color: var(--pg-ink2); }
.uc-split span:first-child { flex: 0 0 var(--w); background: var(--c); color: #fff; }
.uc-chart--donut { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 20px; }
.uc-chart--donut figcaption { grid-column: 1 / -1; }
.uc-chart--donut cite { grid-column: 1 / -1; }
.uc-donut { position: relative; width: 112px; height: 112px; }
.uc-donut svg { display: block; width: 100%; height: 100%; transform: rotate(0deg); }
.uc-donut circle { fill: none; stroke-width: 5; }
.uc-donut__bg { stroke: color-mix(in srgb, var(--c) 16%, #fff); }
.uc-donut__fg { stroke: var(--c); stroke-linecap: butt; }
.uc-donut b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 30px/1 var(--pg-num); letter-spacing: -0.02em; }
.uc-shot { margin: 0; overflow: hidden; border: 1px solid var(--pg-line); border-radius: 14px; background: #fff; box-shadow: 0 26px 50px -34px rgb(0 0 0 / 0.4); }
.uc-shot__bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid #eee; color: var(--pg-muted); font: 500 11.5px/1 var(--pg-mono); }
.uc-shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: #e5e5e5; }
.uc-shot__bar i:nth-child(3) { margin-right: 6px; }
.uc-shot__bar b { color: var(--pg-ink); font-weight: 500; }
.uc-shot img { display: block; width: 100%; height: auto; }
.uc-cases { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.uc-cases li { padding: 18px 0; border-top: 1px solid var(--pg-line); }
.uc-when, .uc-do { margin: 0; font-size: 15.5px; line-height: 1.55; }
.uc-when { color: var(--pg-muted); }
.uc-do { color: var(--pg-ink); }
.uc-do::before { content: "In Xee"; display: block; margin: 12px 0 5px; color: var(--c); font: 500 11.5px/1 var(--pg-mono); letter-spacing: 0.01em; }
.uc-cases { counter-reset: uc; }
.uc-cases li { counter-increment: uc; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-content: start; padding: 22px 0 24px; }
.uc-cases li::before { content: counter(uc); grid-row: span 2; color: var(--c); font: 400 26px/1 var(--pg-num); }
.uc-chart { transition: border-color 180ms, box-shadow 220ms; }
.uc-chart:hover { border-color: color-mix(in srgb, var(--c) 35%, var(--pg-line)); box-shadow: 0 18px 36px -28px rgb(0 0 0 / 0.35); }
.uc-sources { margin: 24px 0 0; padding: 20px 0 0 18px; border-top: 1px solid var(--pg-line); color: var(--pg-muted); font-size: 13px; line-height: 1.6; }
.uc-sources a { color: var(--pg-ink2); text-decoration: underline; text-underline-offset: 3px; }
.uc-sources li:target { color: var(--pg-ink); }
.uc-note { margin: 10px 0 0; color: var(--pg-muted); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .uc-bar i { animation: uc-grow 700ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  @keyframes uc-grow { from { transform: scaleX(0); } to { transform: none; } }
}
@media (max-width: 960px) { .uc-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .uc-cases { grid-template-columns: 1fr; }
  .uc-bar, .uc-bars--range .uc-bar { grid-template-columns: 6.5rem minmax(0, 1fr) 4.2rem; font-size: 13px; }
  .uc-bars--range .uc-bar { grid-template-columns: 6.5rem minmax(0, 1fr) 5.2rem; }
}

/* solutions: the use cases follow the role picked above, with their own picker beside them */
.so-pick--sm { margin-top: 0; margin-bottom: 8px; }
.so-pick--sm .so-role { font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.375rem); }
.uc-role[hidden] { display: none; }
.uc-role { animation: so-in 320ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@media (prefers-reduced-motion: reduce) { .uc-role { animation: none; } }

/* ---------- solutions: one document, a role rail, the agent's Monday check-in ---------- */html:has(.wg3){scroll-padding-top:72px}
@media (prefers-reduced-motion:no-preference){html:has(.wg3){scroll-behavior:smooth}}
.pg-hero>.wg3-skip,.wg3-skip{position:absolute;left:12px;top:-60px;z-index:60;padding:10px 14px;border-radius:10px;background:var(--pg-ink);color:#fff;text-decoration:none;transition:top 150ms}.pg-hero>.wg3-skip:focus,.wg3-skip:focus{top:60px}
.wg3{display:grid;grid-template-columns:200px minmax(0,1fr);gap:clamp(28px,4vw,56px);padding:0 var(--pg-gutter);border-top:1px solid var(--pg-line)}
.wg3-rail{padding-top:clamp(32px,4vw,56px)}
.wg3-nav{position:sticky;top:76px;display:grid;gap:2px;align-content:start}
.wg3-nav .pg-eyebrow{margin:0 0 10px 12px}
.wg3-link{display:flex;align-items:center;gap:10px;min-height:40px;padding:0 12px;border:1px solid transparent;border-radius:10px;color:var(--pg-muted);font-size:15px;font-weight:500;text-decoration:none;touch-action:manipulation;transition:background-color 150ms,border-color 150ms,color 150ms}
.wg3-link i{width:8px;height:8px;border-radius:50%;background:var(--c,var(--pg-line))}
.wg3-link:hover{background:var(--pg-surface);color:var(--pg-ink)}
.wg3-link[aria-current=location]{border-color:var(--pg-line);background:#fff;color:var(--pg-ink)}
.wg3-link--sub{margin-top:6px}.wg3-link--sub+.wg3-link--sub{margin-top:0}
.wg3 a:focus-visible,.wg3-skip:focus-visible{outline:2px solid var(--pg-ink);outline-offset:2px;border-radius:8px}
.wg3-role{padding:clamp(36px,5vw,64px) 0 clamp(40px,6vw,72px);border-bottom:1px solid var(--pg-line);scroll-margin-top:72px}
.wg3-role:first-child{padding-top:clamp(32px,4vw,56px)}
.wg3-name{display:flex;align-items:center;gap:14px;margin:0 0 24px}
.wg3-name .pg-tile{margin:0;flex:none}
.wg3-name h2{margin:0;font-size:clamp(1.625rem,1.2rem + 1.4vw,2.25rem);font-weight:500;line-height:1.12;letter-spacing:-.03em;text-wrap:balance}
.wg3-claim{margin:0;max-width:30ch;font-size:clamp(1.25rem,1.05rem + .8vw,1.625rem);font-weight:500;line-height:1.2;letter-spacing:-.025em;text-wrap:balance}
.wg3 .so-lead{margin-top:14px;text-wrap:pretty}
.wg3-sub{margin:56px 0 18px;font-size:20px;font-weight:500;letter-spacing:-.02em}
.so-hero.wg3-hero{padding-bottom:clamp(36px,5vw,64px)}
.wg3-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5vw,72px);align-items:center}
.so-hero.wg3-hero h1{max-width:16ch;font-size:clamp(2.5rem,1.2rem + 3.2vw,3.5rem);line-height:1.04}
.wg3-hero .pg-lede{max-width:30rem}
.wg3-hero__text .pg-actions{margin-top:30px}
.wg3-ci{--rc:var(--pg-subs);position:relative}
.wg3-ci[data-role=product]{--rc:var(--pg-tests)}.wg3-ci[data-role=ua]{--rc:var(--pg-ads)}.wg3-ci[data-role=owner]{--rc:var(--pg-aso)}
.wg3-ci .dx{--c:var(--rc);transition:box-shadow 300ms}
.wg3-ci__from{display:flex;align-items:center;gap:10px;margin:0 0 12px;color:var(--pg-muted);font-size:14px}
.wg3-ci__from .pg-tile{--c:var(--rc);margin:0;width:28px;height:28px;border-radius:8px}
.wg3-ci .dx-body{padding:20px 20px 22px}
.wg3-ci .dx-title{font-size:15px}
.wg3-ci .dx-agent{margin-top:4px;padding:16px;border-radius:14px}
.wg3-ci .dx-agent svg{width:18px;height:18px;margin-top:2px}
.wg3-ci .dx-agent p{font-size:clamp(1rem,.95rem + .25vw,1.125rem);line-height:1.5;color:var(--pg-ink)}
.wg3-ci .dx-btns{gap:8px;margin-top:16px}
.wg3-ci button.dx-btn{height:40px;padding:0 16px;border-radius:10px;font-family:inherit;font-size:14.5px;font-weight:600;line-height:1;color:inherit;cursor:pointer;touch-action:manipulation;transition:background-color 150ms,border-color 150ms,color 150ms}
.wg3-ci button.dx-btn--dark{color:#fff;border-color:var(--rc);background:var(--rc)}
.wg3-ci button.dx-btn--dark:hover{filter:brightness(1.08)}.wg3-ci button.dx-btn:not(.dx-btn--dark):hover{background:var(--pg-surface);border-color:#d4d4d4}
.wg3-ans:focus{outline:none}
.wg3-ans{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--pg-line);color:var(--pg-ink);font-size:15px;font-weight:500}
.wg3-ci [hidden]{display:none!important}
.wg3-who{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
.wg3-who>span{margin-right:4px;color:var(--pg-muted);font-size:13.5px}
.wg3-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border:1px solid var(--pg-line);border-radius:99px;background:#fff;color:var(--pg-muted);font-family:inherit;font-size:13.5px;font-weight:500;line-height:1;cursor:pointer;touch-action:manipulation;transition:background-color 150ms,border-color 150ms,color 150ms}
.wg3-chip i{width:7px;height:7px;border-radius:50%;background:var(--c)}
.wg3-chip:hover{border-color:#d4d4d4;color:var(--pg-ink)}
.wg3-chip[aria-pressed=true]{border-color:var(--c);background:color-mix(in srgb,var(--c) 7%,#fff);color:var(--pg-ink)}
.wg3-ci button:focus-visible{outline:2px solid var(--pg-ink);outline-offset:2px}
@media (max-width:900px){.wg3-hero{grid-template-columns:1fr}.wg3-hero h1{max-width:16ch}}
@media (prefers-reduced-motion:reduce){.wg3-ci .dx,.wg3-chip,.wg3-ci button.dx-btn{transition:none}}
.wg3 .uc-chart--donut{column-gap:24px}
.wg3 .uc-donut{width:132px;height:132px}
.wg3 .uc-donut b{font-size:23px;letter-spacing:-.03em;font-variant-numeric:lining-nums}
.wg3 .so-pane{animation:none;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:clamp(24px,3vw,40px)}
.wg3 .pg-code pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media (max-width:1200px){.wg3 .so-pane{grid-template-columns:1fr}.wg3 .so-side{position:static}}
.wg3 .uc-top{margin-top:0}
.wg3 .pg-head h2{scroll-margin-top:72px}
.wg3-where,.wg3-src{padding:clamp(40px,6vw,72px) 0 0}
.wg3-src{padding-bottom:clamp(40px,6vw,72px)}
.wg3-src .uc-sources{margin-top:8px}
.wg3 .so-side{top:80px}
@media (max-width:1000px){
.wg3{grid-template-columns:1fr}.wg3-rail{position:sticky;top:48px;z-index:20;margin:0 calc(-1*var(--pg-gutter));padding:8px var(--pg-gutter);background:rgb(255 255 255/.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--pg-line)}
.wg3-nav{position:static;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}.wg3-nav .pg-eyebrow{display:none}.wg3-link{flex:none;white-space:nowrap}.wg3-link--sub{margin-top:0}
.wg3-role,.wg3 .pg-head h2{scroll-margin-top:112px}}
@media (pointer:coarse){.wg3-link{min-height:44px}}
@media (prefers-reduced-motion:reduce){.wg3-link,.wg3-skip{transition:none}}

/* ---------- services: one document, a rail of services ---------- */
.pg-btn,.bd-btn,.sx-hero a{touch-action:manipulation}
.sx-copy > p,.sx-steps .pg-p,.pg-head p,.sx-art__n{text-wrap:pretty}
.sx-fields em{font-variant-numeric:tabular-nums}
@media (scripting:none){.pg-rv{opacity:1;transform:none}}
.wg3 .sx-pane{grid-column:auto;grid-row:auto}
.wg3.sv{grid-template-columns:270px minmax(0,1fr)}
.wg3 .sx-copy .pg-actions{justify-content:flex-start;margin-top:24px}
.wg3 .sx-art{position:sticky;top:84px}
.sv a.sx-tab{color:inherit;text-decoration:none;touch-action:manipulation}
.sv a.sx-tab[aria-current=location]{border-color:var(--c);box-shadow:0 0 0 1px var(--c),0 16px 30px -24px var(--c)}
@media (max-width:1100px){.wg3 .sx-pane{grid-template-columns:1fr}.wg3 .sx-art{position:static}}
@media (max-width:1000px){.wg3.sv{grid-template-columns:1fr}.sv .sx-tabs{position:static;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.sv a.sx-tab{flex:none;padding:8px 12px;grid-template-columns:28px auto;gap:10px}}
