/* PC Best Networks - site styles. No framework; custom properties + grid/flex. */

/* ---------- Tokens ---------- */
:root {
    --brand: #0071d7;
    --brand-strong: #005bb0;
    --brand-glow: #3ea0ff;
    --navy: #0b2545;
    --green: rgb(46, 158, 62);
    --cyan: #22d3ee;

    --bg: #f6f8fc;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef3fa;
    --text: #0b2545;
    --text-muted: #4a5d78;
    --border: #d9e2ef;
    --shadow: 0 1px 2px rgb(11 37 69 / 6%), 0 8px 24px rgb(11 37 69 / 8%);
    --link: var(--brand);
    --focus: #ffb020;

    /* hero stays dark in both themes */
    --hero-bg: #07111f;
    --hero-text: #e8f1ff;
    --hero-muted: #9fb4d0;

    --radius: 14px;
    --radius-sm: 10px;
    --container: 1180px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #07111f;
        --bg-alt: #0a1828;
        --surface: #0e1f33;
        --surface-2: #132a44;
        --text: #e8f1ff;
        --text-muted: #9fb4d0;
        --border: #1e3a5c;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
        --link: #5cb2ff;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #07111f;
    --bg-alt: #0a1828;
    --surface: #0e1f33;
    --surface-2: #132a44;
    --text: #e8f1ff;
    --text-muted: #9fb4d0;
    --border: #1e3a5c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
    --link: #5cb2ff;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
pre, code { font-family: var(--mono); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--text-muted); font-size: .95rem; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 100;
    background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; vertical-align: -0.125em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .8em 1.3em; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 650; line-height: 1.1; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-sm { padding: .55em 1em; font-size: .9rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), #1d8cf0);
    color: #fff;
    box-shadow: 0 6px 20px rgb(0 113 215 / 35%);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgb(0 113 215 / 50%); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--link); }
.hero .btn-ghost, .page-head .btn-ghost, .cta-band .btn-ghost-light {
    color: var(--hero-text); border-color: rgb(255 255 255 / 25%); background: rgb(255 255 255 / 4%);
}
.hero .btn-ghost:hover, .page-head .btn-ghost:hover, .cta-band .btn-ghost-light:hover {
    border-color: var(--brand-glow); color: #fff;
}
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { width: 62px; height: auto; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name span { color: var(--brand); }
.site-footer .brand-name span { color: var(--brand-glow); }

.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-for-light { display: none; }
    :root:not([data-theme="light"]) .logo-for-dark { display: block; }
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
    display: block; padding: 8px 12px; border-radius: 8px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { color: var(--link); background: var(--surface-2); }
.has-menu { position: relative; }
.submenu {
    position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a {
    display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
    color: var(--text); text-decoration: none;
}
.submenu a:hover { background: var(--surface-2); }
.submenu .icon { color: var(--brand); width: 1.5em; height: 1.5em; }
.submenu strong { display: block; font-size: .95rem; }
.submenu small { display: block; color: var(--text-muted); font-size: .82rem; }

.theme-toggle, .nav-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--brand); color: var(--link); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-grid; }
    .site-nav {
        position: absolute; inset: 68px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 12px;
        padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        max-height: calc(100vh - 68px); overflow-y: auto;
        display: none;
    }
    .nav-open .site-nav { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-list > li > a { padding: 12px; }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; background: transparent;
    }
    .theme-toggle { align-self: flex-start; }
    .nav-cta { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero, .page-head, .cta-band {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(60% 80% at 85% 10%, rgb(0 113 215 / 45%), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgb(34 211 238 / 18%), transparent 60%),
        linear-gradient(180deg, var(--hero-bg), var(--navy));
    color: var(--hero-text);
}
.hero a:not(.btn), .page-head a:not(.btn), .cta-band a:not(.btn) { color: #8cc8ff; }
.hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero-inner {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
    padding-block: clamp(56px, 9vw, 112px);
}
.hero-inner-product { grid-template-columns: 1.2fr .8fr; padding-block: clamp(40px, 7vw, 88px); }
.hero .lead, .page-head .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--hero-muted); max-width: 62ch; }
.hero p { color: var(--hero-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); font-weight: 600; margin-bottom: 1rem;
}
.hero .eyebrow, .page-head .eyebrow { color: var(--cyan); }
.gradient-text {
    background: linear-gradient(90deg, #5cb2ff, var(--cyan));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.live-dot, .status-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgb(46 158 62 / 70%); animation: pulse 2s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 10px rgb(46 158 62 / 0%); }
    100% { box-shadow: 0 0 0 0 rgb(46 158 62 / 0%); }
}
.breadcrumb { font-size: .88rem; color: var(--hero-muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.hero-visual { position: relative; min-height: 400px; }
.call-card, .code-card {
    border: 1px solid rgb(255 255 255 / 12%); border-radius: 18px;
    background: linear-gradient(160deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}
.call-card { position: relative; width: min(100%, 340px); margin-left: auto; padding: 22px; }
.call-card-head { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--hero-muted); font-family: var(--mono); }
.call-card-number { font-size: 1.6rem; font-weight: 750; margin-top: 18px; }
.call-card-meta { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #86efac; font-family: var(--mono); }
.call-card-time { font-family: var(--mono); color: var(--hero-muted); text-align: right; }
.eq { display: flex; align-items: center; gap: 4px; height: 64px; margin: 18px 0 8px; }
.eq span {
    flex: 1; border-radius: 2px; height: 30%;
    background: linear-gradient(180deg, var(--cyan), var(--brand));
    animation: eq 1.2s ease-in-out infinite;
}
.eq span:nth-child(3n) { animation-delay: -.3s; }
.eq span:nth-child(3n+1) { animation-delay: -.6s; }
.eq span:nth-child(4n) { animation-delay: -.9s; }
.eq span:nth-child(5n) { animation-duration: 1.6s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 95%; } }
.code-card { position: absolute; left: 0; bottom: -10px; width: min(92%, 380px); padding: 16px 18px; }
.code-card-static { position: static; width: 100%; background: var(--hero-bg); }
.code-card pre { margin: 0; font-size: .8rem; line-height: 1.7; color: #cfe3ff; white-space: pre-wrap; word-break: break-word; }
.tok-c { color: #7f95b3; }
.tok-f { color: #5cb2ff; }
.tok-s { color: #86efac; }

.hero-shot { display: flex; justify-content: center; }
.hero-shot img {
    max-height: 460px; width: auto; border-radius: 16px;
    border: 1px solid rgb(255 255 255 / 14%); box-shadow: 0 30px 60px rgb(0 0 0 / 45%);
}

.page-head .container { padding-block: clamp(48px, 7vw, 88px); }
.page-error .container { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 900px) {
    .hero-inner, .hero-inner-product { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { min-height: 300px; }
    .call-card { margin-inline: auto 0; }
    .hero-shot img { max-height: 360px; }
}
@media (max-width: 520px) {
    .hero-visual { min-height: 0; display: grid; gap: 14px; }
    .call-card, .code-card { position: static; width: 100%; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections and cards ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-muted); }
.section-head-left { margin-inline: 0; text-align: left; }

.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card-grid-price { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card {
    position: relative; display: flex; flex-direction: column;
    padding: 24px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    color: var(--text);
}
.card p { color: var(--text-muted); }
.card-icon {
    display: inline-grid; place-items: center; flex: none;
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
    color: var(--brand);
    background: linear-gradient(135deg, rgb(0 113 215 / 14%), rgb(34 211 238 / 12%));
    border: 1px solid rgb(0 113 215 / 22%);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-kicker { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .5em; }
.product-card { text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.product-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .2s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover::before { opacity: 1; }
.product-card h3 { font-size: 1.25rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .35em; font-weight: 650; color: var(--link); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--green); margin-top: .15em; }
.check-list-compact { gap: 8px; font-size: .95rem; }

.feature-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 32px; }
.feature-group h3 { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.note {
    display: flex; gap: 10px; align-items: flex-start; margin: 36px 0 0; padding: 16px 18px;
    border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.note .icon { color: var(--brand); margin-top: .25em; }

.platform-card { align-items: flex-start; }
.license-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .license-grid { grid-template-columns: 1fr; } }
.license-tile { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.license-free { border-color: rgb(46 158 62 / 50%); }
.price { display: block; font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.license-free .price, .price-card-free .price { color: var(--green); }

.shot-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: flex-start; }
.shot { margin: 0; max-width: 300px; }
.shot img { border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); max-height: 560px; width: auto; }
.shot figcaption { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: 10px; }

.download-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.download {
    display: flex; align-items: center; gap: 16px; height: 100%;
    padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
a.download:hover { border-color: var(--brand); transform: translateY(-2px); }
.download .card-icon { margin: 0; }
.download strong { display: block; }
.download small { display: block; color: var(--text-muted); font-size: .86rem; overflow-wrap: anywhere; }
.download-disabled { opacity: .8; border-style: dashed; }

.quote-card { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0 0 16px; font-size: 1.02rem; }
.quote-card figcaption { margin-top: auto; color: var(--text-muted); font-size: .92rem; }
.quote-card figcaption strong { color: var(--text); }
.quote-card-wide { max-width: 860px; margin: 0 auto 24px; text-align: center; }
.quote-card-wide blockquote { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.logo-chip {
    display: grid; place-items: center; height: 64px; padding: 8px 12px; margin-bottom: 16px;
    background: #fff; border-radius: 10px; border: 1px solid var(--border);
}
.logo-chip img { max-height: 48px; width: auto; object-fit: contain; }
.quote-card-logo .logo-chip, .agent-card .logo-chip { justify-self: start; width: max-content; max-width: 100%; }

.news-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; margin-bottom: 56px; border-radius: var(--radius); background: linear-gradient(135deg, rgb(0 113 215 / 12%), rgb(46 158 62 / 10%)); border: 1px solid var(--border); }
.news-card p { margin: 0; }
.badge { flex: none; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; }

.contact-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0 0; font-size: .93rem; }
.contact-dl dt { color: var(--text-muted); }
.contact-dl dd { margin: 0; overflow-wrap: anywhere; }
.logo-wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.logo-wall .logo-chip { margin: 0; height: 84px; }

/* ---------- Pricing ---------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 22%); text-decoration: none; font-size: .9rem; }
.page-head a.chip { color: var(--hero-text); }
.chip:hover { border-color: var(--brand-glow); }
.price-groups { display: grid; gap: 56px; }
.price-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.price-group-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.price-card p { flex: 1; }
.price-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-card-foot .price { margin: 0; font-size: 1.35rem; }
.price-card-free { border-color: rgb(46 158 62 / 45%); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); background: var(--surface-2); }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { color: var(--hero-muted); margin: 0; max-width: 60ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- License portal (/users) ---------- */
.mono { font-family: var(--mono); }
.lic-form-wrap { max-width: 860px; }
.lic-result { margin-top: 40px; display: grid; gap: 16px; }
.lic-h { margin: 16px 0 0; font-size: 1.25rem; }
.lic-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.lic-facts > div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.lic-facts dt { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.lic-facts dd { margin: 4px 0 0; font-weight: 600; }
.lic-table { min-width: 860px; font-size: .9rem; }
.lic-table th, .lic-table td { padding: 10px 12px; white-space: nowrap; }
.lic-yes { color: var(--green); font-weight: 600; }
.lic-no { color: #e5484d; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-wrap { padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; }
.req { color: #e5484d; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    padding: 11px 13px; border-radius: var(--radius-sm);
    background: var(--bg); border: 1px solid var(--border);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(0 113 215 / 18%);
}
.field [aria-invalid="true"] { border-color: #e5484d; }
.field-error { margin: 0; color: #e5484d; font-size: .88rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot p { margin: 0; }
.captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha-img { border-radius: var(--radius-sm); border: 1px solid var(--border); background: #eef3f9; }
.captcha-input { max-width: 200px; text-transform: uppercase; letter-spacing: .15em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.alert p { margin: 0; }
.alert-success { background: rgb(46 158 62 / 12%); border: 1px solid rgb(46 158 62 / 45%); }
.alert-success .icon { color: var(--green); margin-top: .2em; }
.alert-error { background: rgb(229 72 77 / 10%); border: 1px solid rgb(229 72 77 / 45%); }
.contact-aside { display: grid; gap: 20px; }
.contact-card h2 { font-size: 1.2rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { margin: 0; width: 40px; height: 40px; }
.contact-list strong { display: block; font-size: .85rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.contact-list small { display: block; color: var(--text-muted); font-size: .86rem; overflow-wrap: anywhere; }

.license-text {
    white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; line-height: 1.7;
    padding: clamp(18px, 4vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-muted); padding-top: 56px; font-size: .95rem; }
.site-footer a { color: var(--hero-text); text-decoration: none; }
.site-footer a:hover { color: #8cc8ff; text-decoration: underline; }
.site-footer .brand { color: var(--hero-text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--hero-text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--brand-glow); margin-top: .2em; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); margin-top: 40px; padding-block: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Trial license ---------- */
.product-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.product-picker legend { font-weight: 600; font-size: .93rem; margin-bottom: 6px; padding: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-body {
    display: flex; align-items: center; gap: 10px; height: 100%;
    padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg);
    font-weight: 600; font-size: .95rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.pick-body .icon { color: var(--brand); }
.pick:hover .pick-body { border-color: var(--brand); }
.pick input:checked + .pick-body { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(0 113 215 / 22%); background: var(--surface-2); }
.pick input:focus-visible + .pick-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-hint { margin: 0; color: var(--text-muted); font-size: .86rem; }
/* Show the SDK type only for the SDK, and the 2-channel note only for ActiveX (fields stay usable without :has). */
.trial-form:has(input[name="product"]) .only-activex { display: none; }
.trial-form:has(input[name="product"]:checked):not(:has(#product-sdk:checked)) .only-sdk { display: none; }
.trial-form:has(#product-activex:checked) .only-activex { display: block; }
.trial-guide { margin-bottom: 28px; }
.trial-guide h2 { font-size: 1.2rem; }
.trial-guide .code-card pre { font-size: .78rem; }
