/* XAG professional pages: Security, Pricing, Demo, Support, Accessibility, Resources, trust strip, device frames, testimonials, cookie notice.
   Load after site.css, legal.css and products.css. Uses only the :root tokens from site.css so Light, Dark and Brite all follow.
   Brite rules for these components are at the end (no yellow text, red replaced by #d4ff00). Self-contained: no external requests. */

.pro { width: min(100% - 2.5rem, 1100px); margin-inline: auto; padding-block: calc(var(--nav-h) + var(--lang-h, 0px) + clamp(1.4rem, 4vw, 2.4rem)) clamp(3rem, 8vw, 6rem); color: var(--ink); line-height: 1.65; overflow-wrap: break-word; }
.pro h1 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.1; font-size: clamp(2rem, 1.1rem + 4vw, 3.4rem); margin: 0 0 0.8rem; }
.pro h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); letter-spacing: -0.01em; margin: 0 0 1rem; }
.pro h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 0.35rem; }
.pro a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pro a:hover, .pro a:focus-visible { text-decoration-thickness: 2px; }
.pro a.pr-btn, .pro a.xnav-link, .pro a.card-link { text-decoration: none; }
.pro a.pr-btn { color: #140b00; }
.pro a.pr-btn-alt { color: var(--ink); }
.pro p { margin: 0 0 1rem; }
.pro-eyebrow { margin: 0 0 0.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.pro-lede { font-size: 1.15rem; color: var(--ink); max-width: 62ch; margin-bottom: 0.8rem; }
.pro-meta { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 1.4rem; }
.pro-sec { padding-top: 2.6rem; }
.pro-sec > p, .pro-sec > ul, .pro-sec > ol { max-width: 70ch; }
.pro-small { color: var(--ink-2); font-size: 0.9rem; max-width: 70ch; }
.pro-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; padding: 0; margin: 0; }
.pro-card { border: 1px solid var(--line); background: rgba(127, 140, 170, 0.07); padding: 1.1rem 1.25rem; }
.pro-card p { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0.5rem; }
.pro-card p:last-child { margin-bottom: 0; }
.pro-list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-2); list-style: disc; max-width: 70ch; }
.pro-list li { margin: 0.4rem 0; }
.pro-note { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: rgba(127, 140, 170, 0.07); padding: 0.9rem 1.1rem; max-width: 70ch; margin: 0 0 1rem; }
.pro-note p:last-child { margin-bottom: 0; }
.pro .pr-faq summary { padding: 0.15rem 0; }
.pro .pr-faq { max-width: 78ch; }

/* shared top links (the same list on xaglobal.app and the education site) */
.xnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; margin: 0 0 1.4rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.xnav-links { display: flex; flex-wrap: wrap; gap: 0.1rem 0.15rem; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; }
.xnav-sep { flex: none; width: 1px; align-self: stretch; margin: 0.35rem 0.4rem; background: var(--line); }
.xnav-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0.2rem 0.6rem; color: var(--ink-2); letter-spacing: 0.02em; }
.xnav-link:hover, .xnav-link:focus-visible, .xnav-link[aria-current="page"] { color: var(--ink); }
.xnav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.xnav .pr-btn { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.85rem; margin-left: auto; }
@media (max-width: 560px) { .xnav .pr-btn { width: auto; } .xnav-sep { display: none; } }
html.xnav-edu .xnav { margin: 0; padding: 0.3rem clamp(0.8rem, 3vw, 2rem); background: var(--bg-2); position: relative; z-index: 5; }

/* trust strip: small factual marks */
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.trust li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; color: var(--ink-2); background: rgba(127, 140, 170, 0.07); }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.trust-wrap { padding-top: 1.4rem; }
.trust-wrap .trust { margin: 0; }
.trust-home { width: min(100% - 2.5rem, 1100px); margin: 1.2rem auto 0; }

/* pricing tables */
.pro-table-wrap { overflow-x: auto; margin: 0 0 0.8rem; border: 1px solid var(--line); }
.pro-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pro-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.pro-table caption { text-align: left; padding: 0.8rem 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.pro-table th, .pro-table td { text-align: left; padding: 0.7rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.pro-table thead th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pro-table tbody th { font-weight: 600; }
.pro-table td.num, .pro-table th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pro-app { margin-bottom: 2rem; }
.pro-app-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 0.6rem; }
.pro-app-head h3 { font-size: 1.25rem; margin: 0; }
.pro-compare { margin-bottom: 1.5rem; }

/* forms (the demo page reuses the home page .cform styles) */
.pro-form { max-width: 46rem; }
.pro .cform { margin-top: 1rem; }
.pro .cform[hidden] { display: none; }
.pro .cform select { width: 100%; padding: 0.8rem 0.9rem; font: inherit; font-size: 1rem; font-weight: 300; color: var(--ink); background: var(--bg-2); border: 1px solid rgba(127, 140, 170, 0.6); border-radius: 2px; }
.pro .cform input[type="text"], .pro .cform input[type="email"], .pro .cform input[type="number"], .pro .cform textarea { width: 100%; margin: 0; padding: 0.8rem 0.9rem; font: inherit; font-size: 1rem; font-weight: 300; line-height: 1.5; color: var(--ink); background: rgba(127, 140, 170, 0.1); border: 1px solid rgba(127, 140, 170, 0.6); border-radius: 2px; }
.pro .cform :is(input, select, textarea):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pro .cform [aria-invalid="true"] { border-color: #e04b4b; }
.pro .cform .btn { border: 2px solid var(--gold); padding: 0.85rem 1.5rem; min-height: 44px; font: inherit; font-weight: 600; color: var(--ink); border-radius: 999px; }
.pro .cform .btn:hover, .pro .cform .btn:focus-visible { background: var(--gold); color: #140b00; }
.pro-row2 { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pro-checks { border: 0; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pro-checks legend { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: 0.5rem; }
.pro-checks label { display: flex; gap: 0.6rem; align-items: center; min-height: 32px; }
.pro-checks input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); }
.pro-status { font-size: 0.95rem; margin: 0; }
.pro-status:empty { display: none; }
.pro-status[data-state="ok"] { color: #1f9d55; }
.pro-status[data-state="bad"] { color: #d33a3a; }
html[data-theme="dark"] .pro-status[data-state="ok"] { color: #35e07a; }
html[data-theme="dark"] .pro-status[data-state="bad"] { color: #ff8a8a; }
.pro-thanks { border: 1px solid var(--gold); padding: 1.4rem 1.5rem; max-width: 46rem; }
.pro-thanks[hidden], .pro-cal[hidden], .pro-hidden[hidden] { display: none; }
.pro-cal { border: 1px solid var(--line); padding: 1rem 1.25rem; margin-bottom: 1.2rem; max-width: 46rem; }

/* device frames: <figure class="device device-laptop"><div class="device-screen"><img ...></div><figcaption>..</figcaption></figure> */
.device { margin: 0; }
.device-screen { position: relative; overflow: hidden; background: #0b1020; border: 1px solid rgba(127, 140, 170, 0.5); }
.device-screen img { display: block; width: 100%; height: auto; }
.device-laptop .device-screen { border: 10px solid #1b2236; border-bottom-width: 12px; border-radius: 12px 12px 4px 4px; aspect-ratio: 16 / 10; }
.device-laptop .device-screen img { height: 100%; object-fit: cover; object-position: top left; }
.device-laptop::after { content: ""; display: block; height: 12px; margin: 0 -3%; background: linear-gradient(#2a3350, #121829); border-radius: 0 0 14px 14px; }
.device-phone { max-width: 250px; margin-inline: auto; }
.device-phone .device-screen { border: 8px solid #1b2236; border-radius: 28px; aspect-ratio: 9 / 19; }
.device-phone .device-screen img { height: 100%; object-fit: cover; object-position: top center; }
.device-phone .device-screen::before { content: ""; position: absolute; z-index: 2; top: 6px; left: 50%; width: 22%; height: 5px; margin-left: -11%; background: #1b2236; border-radius: 4px; }
.device figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--ink-3); text-align: center; }
.device-empty { display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 0.85rem; padding: 1rem; min-height: 160px; }
.pro-demo-shots { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }

/* testimonials / case studies: the section is hidden until js/testimonials.js finds entries in data/testimonials.json */
.testi[hidden] { display: none; }
.testi-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; padding: 0; margin: 0; }
.testi-card { border: 1px solid var(--line); padding: 1.2rem 1.3rem; background: rgba(127, 140, 170, 0.07); }
.testi-card blockquote { margin: 0 0 0.8rem; font-size: 1.05rem; }
.testi-card cite { font-style: normal; color: var(--ink-2); font-size: 0.9rem; }

/* resources */
.res-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; padding: 0; margin: 0; }
.res-card { display: flex; flex-direction: column; gap: 0.5rem; border: 1px solid var(--line); padding: 1.2rem 1.3rem; background: rgba(127, 140, 170, 0.07); }
.res-card h3 { margin: 0; font-size: 1.15rem; }
.res-card h3 a { text-decoration: none; color: var(--ink); }
.res-card h3 a:hover, .res-card h3 a:focus-visible { text-decoration: underline; }
.res-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.res-card .res-meta { color: var(--ink-3); font-size: 0.8rem; }
.article { max-width: 68ch; }
.article h1 { margin-bottom: 0.6rem; }
.article h2 { margin: 2.2rem 0 0.8rem; font-weight: 600; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.55rem); }
.article p, .article li { font-size: 1.0625rem; line-height: 1.75; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article li { margin: 0.4rem 0; }
.article-by { display: flex; gap: 0.8rem; align-items: center; margin: 1rem 0 2rem; padding: 0.8rem 0; border-block: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; }
.article-by strong { color: var(--ink); }
.article-cta { margin-top: 2.4rem; border: 1px solid var(--gold); padding: 1.3rem 1.4rem; }
.article-cta h2 { margin-top: 0; }
.article-end { margin-top: 2rem; color: var(--ink-3); font-size: 0.88rem; }

/* cookie / analytics notice (only ever shown when an analytics token is set) */
.consent { position: fixed; z-index: 60; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; max-width: 40rem; margin-inline: auto; padding: 1rem 1.2rem; background: var(--bg-2); color: var(--ink); border: 1px solid var(--gold); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); font-size: 0.92rem; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.7rem; }
.consent a { color: var(--gold); }
.consent-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.consent button { min-height: 44px; padding: 0.5rem 1.2rem; font: inherit; font-weight: 600; border-radius: 999px; cursor: pointer; border: 2px solid var(--gold); background: transparent; color: var(--ink); }
.consent button.consent-ok { background: var(--gold); color: #140b00; }

/* Brite: no yellow text; red replaced by fluoro #d4ff00 */
html[data-theme="brite"] body .pro-status[data-state="bad"], html[data-theme="brite"] body .pro .cform [aria-invalid="true"] { color: #d4ff00 !important; }
html[data-theme="brite"] body .pro .cform [aria-invalid="true"] { border-color: #d4ff00; }
html[data-theme="brite"] body .pro-status[data-state="ok"] { color: #39ff88 !important; }
html[data-theme="brite"] .pro-card, html[data-theme="brite"] .testi-card, html[data-theme="brite"] .res-card, html[data-theme="brite"] .trust li { background: rgba(0, 229, 255, 0.06); }
html[data-theme="brite"] .consent { background: #012456; }
html[data-theme="brite"] body .consent button.consent-ok { background: #39ff88 !important; border-color: #39ff88 !important; color: #012456 !important; }
html[data-theme="brite"] body .pro a.pr-btn, html[data-theme="brite"] body .pro a.pr-btn * { color: #012456 !important; }
html[data-theme="brite"] body .pro a.pr-btn-alt { background: transparent !important; color: #7dffea !important; }
html[data-theme="brite"] body .pro .cform select { background: #012456; }
html[data-theme="brite"] body .pro .cform .btn { background: transparent; }
html[data-theme="brite"] body .pro .cform .btn:hover, html[data-theme="brite"] body .pro .cform .btn:focus-visible { background: #39ff88; color: #012456 !important; }
html[data-theme="light"] .device-screen { background: #dfe6f5; }
html[data-theme="light"] .pro a.pr-btn { color: #fff; }
html[data-theme="light"] .pro .cform .btn:hover, html[data-theme="light"] .pro .cform .btn:focus-visible { color: #fff; }
html[data-theme="light"] .consent { box-shadow: 0 8px 30px rgba(11, 28, 45, 0.25); }
html[data-theme="light"] .consent button.consent-ok { color: #fff; }

@media print { .xnav, .consent, .trust-wrap { display: none; } }
