/* URSY Pro widgets + the big-section layout for /pro/ and /analytics/ (theme 1.2.0). Light page; the app window and
   the Observatory stage are drawn like real product screens. */

/* ---------- Page layout: big alternating feature sections (2.0 "Calibrated") ---------- */
.px-hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 5vw, 72px); background: linear-gradient(180deg, var(--tint-2) 0%, #fff 75%); border-bottom: 1px solid var(--line); }
.px-hero__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .px-hero__in { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; } }
.px-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 4px 12px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--ink); }
.px-kicker .w-dot { margin-right: 0; }
.px-hero h1 { margin: 0 0 20px; font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.px-hero h1 em { font-style: normal; color: inherit; }
.px-lede { margin: 0 0 28px; max-width: 580px; font-size: clamp(17.5px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }
.px-lede p { margin: 0 0 .8em; }
.px-lede p:last-child { margin-bottom: 0; }
.px-hero .ud-stats { margin-bottom: 28px; }
.px-hero .ud-stats b { font-size: clamp(28px, 2.8vw, 38px); }
.px-hero .ud-stats span { font-size: 13.5px; }
.px-hero .ud-stats li + li { padding-left: 16px; }
.px-hero .ud-stats li { padding-right: 12px; }
.px-nav { position: sticky; top: var(--hd-h, 68px); z-index: 6; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .px-nav { background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); } }
.px-nav .ua-c { display: flex; gap: 0 4px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.px-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; color: var(--muted); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.px-nav a:first-child { padding-left: 0; }
.px-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.px-nav b { font-weight: 600; color: var(--muted); opacity: .7; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .px-nav { position: static; } .px-nav .ua-c { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .px-nav a { white-space: nowrap; } }

.px-sec { padding: clamp(72px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.px-sec:nth-of-type(even) { background: var(--bg); }
.px-sec__in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1080px) {
	.px-sec__in { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: 72px; }
	.px-sec--flip .px-sec__in { grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.74fr); }
	.px-sec--flip .px-copy { order: 2; }
	.px-sec--wide .px-sec__in { grid-template-columns: minmax(0, 1fr); }
}
.px-num { margin: 0 0 14px; font-size: 15px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--accent); }
.px-copy h2 { margin: 0 0 16px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -0.032em; }
.px-copy > p { margin: 0 0 20px; max-width: 620px; font-size: 17.5px; line-height: 1.6; color: var(--muted); }
.px-ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.px-ticks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.px-ticks li::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3 3L14 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3 3L14 5.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.px-ticks b { color: var(--ink); font-weight: 700; }
.px-visual { min-width: 0; }
.px-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.px-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-amber); }

/* ---------- Shared bits ---------- */
.w-note { margin: 12px 2px 0; font-size: 13.5px; color: var(--muted); }
.w-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #22c55e; vertical-align: 1px; }
.w-dot--live { animation: ua-pulse 1.6s ease-in-out infinite; }
.w-seg { display: inline-flex; padding: 3px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); }
.w-seg button { padding: 5px 10px; border: 0; border-radius: 5px; background: none; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.w-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.w-seg--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.w-seg--dark button { color: #9fb0cc; }
.w-seg--dark button.is-on { background: #1d4ed8; color: #fff; }

/* ---------- A. The Pro app window ---------- */
.w-app { margin: 0; border: 1px solid var(--line); border-radius: var(--r-xl, 16px); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.w-app__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.w-app__bar b { font-size: 14px; }
.w-app__site { flex: 1; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.w-app__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 440px; }
.w-rail { padding: 12px 10px; border-right: 1px solid var(--line); background: #fbfcfe; }
.w-rail p { margin: 12px 6px 4px; font-size: 11px; font-weight: 650; color: var(--muted); }
.w-rail p:first-child { margin-top: 0; }
.w-rail span { display: block; padding: 5px 8px; border-radius: 5px; font-weight: 600; color: var(--ink); }
.w-rail span.is-on { background: var(--tint); color: var(--accent-ink); }
.w-main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.w-story { padding: 10px 12px; border-radius: 8px; background: var(--tint); line-height: 1.45; }
.w-story b { margin-right: 6px; color: var(--accent-ink); }
.w-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.w-card { position: relative; padding: 10px 10px 4px; border: 1px solid var(--line); border-radius: 8px; }
.w-card span { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.w-card i, .w-table i { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 9px; font-style: normal; color: var(--muted); }
.w-card b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.w-card em { font-style: normal; font-size: 11.5px; font-weight: 700; }
.w-card em.is-up { color: var(--c-green); }
.w-card em.is-down { color: var(--c-coral); }
.w-card svg { display: block; width: 100%; height: 26px; margin-top: 2px; }
.w-card polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.w-chart { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.w-chart__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; }
.w-chart__head span { color: var(--muted); }
.w-chart__head i { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 10px; border-radius: 2px; vertical-align: -1px; }
.k-ai, .b-ai { background: var(--accent); }
.k-pp, .b-pp { background: #7dd3fc; }
.w-bars { display: flex; align-items: flex-end; gap: 3px; height: 92px; }
.w-bars span { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; gap: 1px; }
.w-bars i { display: block; border-radius: 2px 2px 0 0; transition: height .4s; }
.w-table { width: 100%; border-collapse: collapse; }
.w-table th { padding: 7px 8px; background: var(--bg); font-size: 11.5px; font-weight: 700; text-align: left; color: var(--ink); }
.w-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.w-table tr:nth-child(even) td { background: #fbfcfe; }
.w-badge { padding: 2px 7px; border-radius: 4px; font-style: normal; font-weight: 700; font-size: 11.5px; }
.w-badge--real { background: var(--t-green); color: var(--c-green); }
.w-badge--fake { background: var(--t-coral); color: var(--c-coral); }
@media (max-width: 720px) {
	.w-app__body { grid-template-columns: minmax(0, 1fr); }
	.w-rail { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
	.w-rail p { display: none; }
	.w-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.w-app__site { display: none; }
}

/* ---------- B. The Observatory ---------- */
.w-obs { margin: 0; border-radius: var(--r-xl, 16px); background: #0b1220; color: #dbe4f3; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 30, 90, .45); }
.w-obs__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.w-obs__bar > b { flex: 1 1 200px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.w-obs__play { width: 34px; height: 30px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; background: none; color: #fff; cursor: pointer; }
.w-obs__body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; }
.w-obs__stage { display: block; width: 100%; height: auto; background: radial-gradient(70% 70% at 50% 50%, #111c33, #0b1220); }
.o-ring { fill: rgba(255, 255, 255, .03); stroke-width: 1.2; stroke-opacity: .7; }
.o-label { fill: #c9d6ee; font: 600 11px var(--f-mono); text-anchor: middle; letter-spacing: .05em; text-transform: uppercase; }
[data-obs-trail] { stroke: #34d399; stroke-width: 2; stroke-opacity: .75; stroke-linejoin: round; }
[data-obs-dot] { fill: #34d399; stroke: #fff; stroke-width: 2; transition: cx .9s ease, cy .9s ease; }
.is-person [data-obs-trail] { stroke: #fbbf24; }
.is-person [data-obs-dot] { fill: #fbbf24; }
.w-obs__side { padding: 12px 14px; border-left: 1px solid rgba(255, 255, 255, .1); background: #0e1628; font-size: 12.5px; }
.w-obs__k { margin: 0 0 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #8ea0c2; }
.w-obs__k b { color: #fff; }
.w-obs__url { margin: 0 0 14px; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-family: var(--f-mono); font-size: 12px; color: #fff; word-break: break-all; }
.w-obs__log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.w-obs__log li { padding: 7px 9px; border-left: 3px solid #6366f1; border-radius: 4px; background: rgba(255, 255, 255, .05); line-height: 1.35; animation: w-in .35s ease; }
.w-obs__log li span { display: block; font-family: var(--f-mono); font-size: 10px; color: #8ea0c2; }
@keyframes w-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .w-obs__body { grid-template-columns: minmax(0, 1fr); } .w-obs__side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); } }

/* ---------- C. The recorders + live feed ---------- */
.w-feed { margin: 0; display: grid; gap: 12px; }
.w-rec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.w-rec__i { padding: 16px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--r-l, 12px); background: #fff; display: grid; gap: 2px; }
.w-rec--edge { border-top-color: #0891b2; }
.w-rec--api { border-top-color: #7c3aed; }
.w-rec__i span { font-size: 13px; font-weight: 650; color: var(--muted); }
.w-rec__i b { font-size: 18px; }
.w-rec__i small { min-height: 34px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.w-rec__i strong { margin-top: 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.w-rec__i strong.is-bump { animation: w-bump .5s ease; }
@keyframes w-bump { 0% { color: var(--accent); } 100% { color: var(--ink); } }
.w-rec__i em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.w-log { border: 1px solid var(--line); border-radius: var(--r-l, 12px); background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.w-log__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: 13px; }
.w-log__head span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.w-log ol { list-style: none; margin: 0; padding: 0; min-height: 296px; }
.w-log li { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) 74px; gap: 10px; align-items: center; padding: 7px 14px; border-bottom: 1px solid var(--line); font-size: 13px; animation: w-in .35s ease; }
.w-log time, .w-log code { font-family: var(--f-mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-log em { justify-self: start; padding: 2px 7px; border-radius: 4px; font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.v-real { background: var(--t-green); color: var(--c-green); }
.v-fake, .v-blocked { background: var(--t-coral); color: var(--c-coral); }
.v-person { background: var(--t-blue); color: var(--c-blue); }
.v-agent { background: var(--t-violet); color: var(--c-violet); }
.v-share { background: var(--t-amber); color: var(--c-amber); }
@media (max-width: 720px) { .w-rec { grid-template-columns: minmax(0, 1fr); } .w-log li { grid-template-columns: 56px minmax(0, 1fr) 64px; } .w-log code { display: none; } }

/* ---------- D. Google Analytics vs URSY ---------- */
.w-vs { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-l, 12px); overflow: hidden; background: #fff; font-size: 15px; box-shadow: var(--shadow-lg); }
.w-vs th { padding: 13px 16px; background: var(--bg); color: var(--ink); text-align: left; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.w-vs td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.w-vs tr:last-child td { border-bottom: 0; }
.w-vs td:not(:first-child), .w-vs th:not(:first-child) { width: 130px; text-align: center; }
.w-yes, .w-no { display: inline-block; min-width: 44px; padding: 2px 9px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 13px; }
.w-yes { background: var(--t-green); color: var(--c-green); }
.w-no { background: var(--t-coral); color: var(--c-coral); }

/* ---------- The Pro tools block + measures on /pro/ ---------- */
.px-measures { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.px-measures li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-l, 12px); background: #fff; }
.px-measures b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.px-measures span { font-size: 14px; color: var(--muted); }
.an-tiers td:not(:first-child) { font-weight: 700; }

/* 05 Pro apps */
.px-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 40px; margin-top: 24px; }
.px-apps__g { padding: 0; border: 0; background: none; }
.px-apps__g h3 { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 17px; font-weight: 700; }
.px-apps__g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.px-apps__g li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.px-apps__g li a, .px-apps__g li b { font-size: 16px; font-weight: 650; color: var(--ink); }
.px-apps__g li a { color: var(--accent-ink); }
.px-apps__g li span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* 2.0: the moving lists keep a fixed height, so nothing below them jumps (layout shift was 0.52 on phones) */
.w-obs__log { height: 312px; overflow: hidden; align-content: start; }
.w-log ol { height: 300px; min-height: 0; overflow: hidden; }
.w-log li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-obs__log li { overflow: hidden; }
@media (max-width: 560px) { .w-vs { font-size: 14px; } .w-vs td, .w-vs th { padding: 10px 10px; } .w-vs td:not(:first-child), .w-vs th:not(:first-child) { width: 78px; } }
