/* ==========================================================
   Research, case study, changelog, status and the access form.
   The platforms page's language (platforms.css): quiet filled
   surfaces, no hairlines, no glows.
   ========================================================== */

.px-bg--short { height: min(56vh, 540px); background-position: center, center 66%; opacity: 0.55; }

/* ---------- a page head, left aligned ---------- */
.rx-hero { padding: calc(70px + clamp(40px, 8vh, 84px)) 0 clamp(40px, 6vh, 64px); }
.rx-hero h1 { max-width: 15em; font-size: clamp(38px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.03; color: #fff; }
.rx-lede { margin: 20px 0 0; max-width: 38em; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; color: #b9bdc5; }
.rx-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; font-size: 13px; color: var(--txt-2); }
.rx-meta b { font-weight: 500; color: #d5d8de; }

/* ---------- findings: text left, figure right ---------- */
.rx-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: clamp(80px, 12vh, 120px); }
.rx-sec h2 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; color: #fff; }
.rx-text p { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: var(--txt); }
.rx-text p b { font-weight: 600; color: #fff; }
.rx-fig { margin: 0; padding: clamp(18px, 2.4vw, 28px); border-radius: 14px; background: var(--surf); }
.rx-fig figcaption { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.rx-fig figcaption small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--txt-2); }
.rx-src { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: #5d626b; }
.rx-big { font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.rx-big + p { margin-top: 10px !important; }

/* legends: a swatch beside plain text */
.fx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-size: 12.5px; color: var(--txt); }
.fx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fx-legend i { width: 10px; height: 10px; border-radius: 3px; }
.fx-legend i.ring { border-radius: 50%; background: none !important; box-shadow: inset 0 0 0 2px #6b7079; }
.fx-legend i.dot { border-radius: 50%; }

/* charts */
.fx-chart { position: relative; }
.fx-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.fx-chart text { font: 400 11px var(--sans); fill: #7c818b; }
.fx-chart .fx-val { font-size: 11.5px; fill: #d5d8de; }
.fx-chart .fx-grid { stroke: #1c1e23; stroke-width: 1; }
.fx-hit { fill: transparent; cursor: default; }
.fx-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 9px; background: #17181c; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); font-size: 12.5px; line-height: 1.5; color: var(--txt); opacity: 0; transition: opacity 0.15s; }
.fx-tip.on { opacity: 1; }
.fx-tip b { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; color: #fff; }
.fx-tip code { font: 400 11.5px var(--mono); color: #c9ccd3; }
.fx-table { margin-top: 14px; font-size: 12.5px; color: var(--txt-2); }
.fx-table summary { cursor: pointer; }
.fx-table table { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0 3px; }
.fx-table th { padding: 0 10px 2px; font-weight: 500; text-align: left; }
.fx-table td { padding: 7px 10px; background: var(--surf-2); color: var(--txt); font-variant-numeric: tabular-nums; }
.fx-table td:first-child { border-radius: 6px 0 0 6px; }
.fx-table td:last-child { border-radius: 0 6px 6px 0; }

/* proportion bars */
.fx-share { display: grid; gap: 16px; }
.fx-share-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; color: var(--txt); }
.fx-share-row > div:first-child b { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.fx-bar { display: flex; gap: 2px; height: 30px; }
.fx-bar span { border-radius: 4px; }
.fx-a { background: #4f84ff; }
.fx-b { background: #5d626b; }

/* a plain table of names */
.rx-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.rx-table th { padding: 0 14px 4px; font-size: 12.5px; font-weight: 500; text-align: left; color: var(--txt-2); }
.rx-table td { padding: 12px 14px; background: var(--surf); color: var(--txt); font-variant-numeric: tabular-nums; }
.rx-table td:first-child { border-radius: 10px 0 0 10px; color: #fff; font-weight: 500; }
.rx-table td:last-child { border-radius: 0 10px 10px 0; }
.rx-table .num { text-align: right; }

/* method notes */
.rx-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.rx-notes div { padding: 18px 20px; border-radius: 12px; background: var(--surf); }
.rx-notes b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.rx-notes span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.6; color: var(--txt-2); }

/* ---------- case study: the story, step by step ---------- */
.cs-steps { display: grid; gap: 12px; margin-top: 32px; }
.cs-step { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 24px 26px; border-radius: 14px; background: var(--surf); }
.cs-when { font-size: 13px; line-height: 1.5; color: var(--accent-2); font-weight: 600; }
.cs-when small { display: block; font-weight: 400; color: var(--txt-2); }
.cs-step h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.cs-step p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--txt); }
.cs-step code, .rx-text code, .cl-entry code, .rx-table code { padding: 1px 6px; border-radius: 5px; background: #15161a; font: 400 0.86em var(--mono); color: #e4e6ea; }
.cs-hist { display: grid; gap: 4px; margin-top: 14px; }
.cs-hist div { display: grid; grid-template-columns: 150px 130px minmax(0, 1fr); gap: 16px; padding: 11px 14px; border-radius: 9px; background: var(--surf-2); font-size: 13px; line-height: 1.5; color: var(--txt); }
.cs-hist b { font-weight: 600; color: #fff; }
.cs-hist small { font-size: 12.5px; color: var(--txt-2); }
.cs-api { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cs-api .px-code pre { font-size: 12px; }

/* ---------- changelog ---------- */
.cl { display: grid; gap: 12px; margin-top: 8px; }
.cl-day { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-top: 40px; }
.cl-day:first-child { padding-top: 0; }
.cl-date { position: sticky; top: 96px; align-self: start; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.cl-date small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--txt-2); }
.cl-items { display: grid; gap: 8px; }
.cl-entry { padding: 20px 22px; border-radius: 12px; background: var(--surf); }
.cl-kind { font-size: 12.5px; font-weight: 600; color: var(--accent-2); }
.cl-entry h3 { margin: 6px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
.cl-entry p, .cl-entry li { font-size: 14px; line-height: 1.65; color: var(--txt); }
.cl-entry p { margin: 8px 0 0; }
.cl-entry ul { margin: 8px 0 0; padding-left: 18px; }

/* ---------- status ---------- */
.st-overall { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-radius: 14px; background: var(--surf); }
.st-overall b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.st-overall small { margin-left: auto; font-size: 12.5px; color: var(--txt-2); }
.st-icon { flex: none; width: 22px; height: 22px; }
.st-icon--operational { color: #3fb950; }
.st-icon--delayed { color: #d29922; }
.st-icon--unknown { color: #7c818b; }
.st-parts { display: grid; gap: 8px; margin-top: 12px; }
.st-part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 18px 22px; border-radius: 12px; background: var(--surf); }
.st-part h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.st-part p { margin: 3px 0 0; font-size: 13.5px; color: var(--txt-2); }
.st-part .st-detail { grid-column: 1 / -1; margin-top: 4px; font-size: 13px; color: var(--txt); font-variant-numeric: tabular-nums; }
.st-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #e4e6ea; }
.st-state .st-icon { width: 17px; height: 17px; }
.st-off { padding: 22px 24px; border-radius: 14px; background: var(--surf); font-size: 14.5px; line-height: 1.65; color: var(--txt); }
.st-off b { display: block; margin-bottom: 4px; font-size: 16px; color: #fff; }

/* ---------- the access form ---------- */
.fm { margin-top: 12px; padding: clamp(24px, 3vw, 36px); border-radius: 14px; background: var(--surf); }
.fm h3 { margin: 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.035em; color: #fff; }
.fm > p { margin: 6px 0 0; font-size: 14px; color: var(--txt-2); }
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 24px; }
.fm-field { display: grid; gap: 7px; }
.fm-field--wide { grid-column: 1 / -1; }
.fm-field label { font-size: 13px; font-weight: 500; color: #d5d8de; }
.fm-field label small { font-weight: 400; color: var(--txt-2); }
.fm-field input, .fm-field select, .fm-field textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 0; border-radius: 9px; background: #15161a; color: #fff; font: 400 14px var(--sans); outline: none; transition: background 0.2s, box-shadow 0.2s; -webkit-user-select: text; user-select: text; }
.fm-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8b9099 50%), linear-gradient(135deg, #8b9099 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.fm-field textarea { min-height: 96px; resize: vertical; }
.fm-field input:focus, .fm-field select:focus, .fm-field textarea:focus { background: #1a1b20; box-shadow: inset 0 0 0 1px rgba(79, 132, 255, 0.6); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 22px; }
.fm-foot small { font-size: 12.5px; line-height: 1.5; color: var(--txt-2); }
.fm-btn { border: 0; cursor: pointer; font-family: var(--sans); }
.fm-btn[disabled] { opacity: 0.6; cursor: default; }
.fm-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.55; }
.fm-msg[hidden] { display: none; }
.fm-msg--ok { background: rgba(79, 132, 255, 0.1); color: #c9d6ff; }
.fm-msg--err { background: rgba(255, 77, 94, 0.08); color: #ff9aa4; }

/* ---------- smaller screens ---------- */
/* ---------- company pages: contact, careers, privacy, terms (2026-11-13) ---------- */
.px a.co-topic.co-topic { text-decoration: none; color: inherit; }
.co-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: 8px; }
.co-topics { display: grid; gap: 6px; }
.co-topic { display: block; padding: 18px 20px 19px; border-radius: 12px; background: var(--surf); color: inherit; transition: background 0.25s, transform 0.25s; }
.co-topic:hover { background: #121317; transform: translateX(3px); }
.co-topic b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.co-topic span { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.55; color: var(--txt-2); }
.co-topic .co-in { display: inline; margin: 0; color: #d5d8de; }
.co-topic--x { background: radial-gradient(120% 160% at 100% 0%, rgba(47, 107, 255, 0.16), transparent 60%), var(--surf); }
.co-aside { margin: 14px 4px 0; font-size: 13px; line-height: 1.6; color: var(--txt-2); }
.co-form { position: sticky; top: 96px; margin-top: 0; }
.co-form > p a, .co-aside a, .co-cta a:not(.px-btn), .lg a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.co-form [data-count] { float: right; font-variant-numeric: tabular-nums; }
.co-form textarea { min-height: 168px; }

.co-sec { padding-top: clamp(80px, 12vh, 120px); }
.co-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.co-head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; color: #fff; }
.co-head p { margin: 0; font-size: 14px; color: var(--txt-2); }

.co-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-role { overflow: hidden; border-radius: 14px; background: var(--surf); }
.co-art { display: block; width: 100%; height: clamp(170px, 18vw, 230px); background: radial-gradient(80% 90% at 50% 45%, rgba(47, 107, 255, 0.07), transparent 70%), #08090a; }
.co-role-in { padding: 24px 26px 28px; }
.co-role h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.035em; color: #fff; }
.co-role h3 + p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: #d5d8de; }
.co-role h4 { margin: 20px 0 6px; font-size: 12.5px; font-weight: 500; color: var(--txt-2); }
.co-role h4 + p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--txt); }

.co-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.co-steps li { position: relative; padding: 64px 22px 24px; border-radius: 14px; background: var(--surf); }
.co-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #15161a; font: 500 12.5px var(--mono); color: var(--accent-2); }
.co-steps b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.co-steps span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--txt-2); }
.co-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; font-size: 14px; color: var(--txt-2); }

/* legal pages: one readable column */
.lg { max-width: 720px; padding-top: 8px; }
.lg h2 { margin: 48px 0 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.035em; color: #fff; }
.lg h2:first-child { margin-top: 0; }
.lg p { margin: 12px 0 0; font-size: 15px; line-height: 1.75; color: var(--txt); }
.lg ul { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.lg li { padding: 14px 18px; border-radius: 10px; background: var(--surf); font-size: 14.5px; line-height: 1.65; color: var(--txt); }
.lg li b { font-weight: 600; color: #fff; }

@media (max-width: 900px) {
  .rx-sec { grid-template-columns: minmax(0, 1fr); }
  .rx-notes, .cs-api { grid-template-columns: minmax(0, 1fr); }
  .cs-step, .cl-day { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cl-date { position: static; }
  .cs-hist div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 640px) {
  .fm-grid { grid-template-columns: minmax(0, 1fr); }
  .co-steps { grid-template-columns: minmax(0, 1fr); }
  .rx-table .hide-sm { display: none; }
}

/* a live number inside a big figure keeps the figure's type */
.px-num b span, .rx-big span, .fx-share-row b span { display: inline; margin: 0; font: inherit; color: inherit; }
.px-num span span { display: inline; margin: 0; font: inherit; color: inherit; }
.rx-text p.rx-big { margin-top: 22px; font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #fff; }

@media (max-width: 900px) {
  .co-split, .co-roles { grid-template-columns: minmax(0, 1fr); }
  .co-form { position: static; }
  .co-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
