/* Compliance Tool — site styles.
   Friendly, airy product style: rounded geometric sans, soft tinted sections, rounded tiles.
   White label: no third-party brand marks; all colours are tokens below. */

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2-variations");
    font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
    --primary: #2451d6;
    --primary-dark: #1b3fae;
    --primary-soft: #e9efff;
    --navy: #121a3a;
    --ink: #121a3a;
    --text: #3b4260;
    --muted: #6b7290;
    --line: #e4e7f0;
    --tint: #f5f7fc;
    --white: #fff;
    --green: #127a55;
    --green-soft: #e5f6ee;
    --amber: #8a5a00;
    --amber-soft: #fdf3e0;
    --red: #c0322b;

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 22px;
    --container: 1160px;
    --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid rgba(36, 81, 214, .45); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.07; font-weight: 750; max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.15; font-weight: 720; }
h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 18px; } body { font-size: 16px; } }

.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--primary); }
.mt { margin-top: 40px; }
.mt-sm { margin-top: 28px; }
.mb { margin-bottom: 24px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: 650 .98rem/1 var(--font); padding: 15px 24px; border-radius: var(--radius);
    border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 16px; font-size: .92rem; border-radius: 10px; }
.btn-primary, .btn-navy { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-navy:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.arrow-link { font-weight: 650; color: var(--primary); width: fit-content; }
.arrow-link::after { content: " →"; }

/* ---------- Header ---------- */
.site-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; }
.logo-mark-bg { fill: var(--primary); }
.logo-mark-check { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-text { font: 600 1.2rem/1 var(--font); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo-text b { font-weight: 800; color: var(--ink); }

.main-nav { display: flex; gap: 6px; margin: 0 auto 0 8px; }
.main-nav a { color: var(--text); font-size: .95rem; font-weight: 550; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.main-nav a:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.main-nav a.active { color: var(--primary); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions .btn { white-space: nowrap; }
.header-signin { color: var(--text); font-size: .95rem; font-weight: 600; padding: 8px 6px; white-space: nowrap; }
.header-signin:hover { color: var(--ink); }
.main-nav + .header-actions { margin-left: 0; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.lang-switch { position: relative; }
.lang-switch summary { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: .9rem; font-weight: 650; color: var(--text); padding: 8px 10px; border-radius: 10px; }
.lang-switch summary:hover { background: var(--tint); }
.lang-switch summary::after { content: "▾"; font-size: .75em; color: var(--muted); }
.globe { display: none; }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px;
    list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(18, 26, 58, .12);
}
.dropdown a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .94rem; }
.dropdown a:hover, .dropdown a[aria-current] { background: var(--tint); text-decoration: none; }

.mobile-menu { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.mobile-menu summary { padding: 14px 6px; }
.mobile-nav { position: fixed; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 18px 18px; display: grid; box-shadow: 0 16px 32px rgba(18, 26, 58, .08); }
.mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.mobile-lang { display: none; gap: 8px; padding-top: 14px; }
.mobile-lang a { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.mobile-lang a[aria-current] { background: var(--primary-soft); border-color: transparent; color: var(--primary-dark); }

@media (max-width: 1180px) {
    .main-nav { display: none; }
    .mobile-menu { display: block; }
}
.label-short { display: none; }
/* On phones the language switch moves into the menu, so logo, sign-in and menu fit on one line. */
@media (max-width: 520px) {
    .header-actions .lang-switch, .header-signin { display: none; }
    .label-long { display: none; }
    .label-short { display: inline; }
    .mobile-lang { display: flex; }
}
@media (max-width: 440px) {
    .logo-text { font-size: 1.05rem; }
    .header-actions { gap: 6px; }
    .header-actions .btn { padding: 10px 12px; }
}

.lang-hint { background: var(--primary-soft); color: var(--ink); font-size: .92rem; padding: 10px 0; }
.lang-hint a { font-weight: 650; margin-left: 6px; }
.lang-hint a::after { content: " →"; }

/* ---------- Sections ---------- */
.page-hero { padding: 76px 0 56px; background: linear-gradient(180deg, var(--tint), var(--white)); }
@media (max-width: 600px) { .page-hero { padding: 44px 0 24px; } .page-hero + .section { padding-top: 32px; } }
.page-hero .lead { max-width: var(--measure); }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--text); }
.eyebrow, .kicker { display: block; font-size: .92rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; letter-spacing: 0; }
.kicker { margin-bottom: 6px; }

.section { padding: 80px 0; }
.section-alt { background: var(--tint); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 48px; align-items: end; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-head > a { justify-self: end; }
.section-head-center { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head-center h2 { max-width: 20ch; }
.section-head-center .search-box { width: 100%; margin-top: 18px; text-align: left; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } .section-head > a { justify-self: start; } .section { padding: 60px 0; } }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-2-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 40px; }
@media (max-width: 900px) { .grid-2-wide { grid-template-columns: 1fr; gap: 28px; } }

.card {
    background: var(--tint); border-radius: var(--radius-lg); padding: 28px;
    display: flex; flex-direction: column; gap: 8px;
}
.section-alt .card { background: var(--white); }
.card h2, .card h3 { margin: 0; }
.card p { margin: 0; color: var(--text); }
.card .card-foot { margin-top: auto; padding-top: 12px; }
a.card { color: inherit; transition: transform .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18, 26, 58, .08); }
a.card .card-foot { color: var(--primary); font-weight: 650; }
.card-num { font-size: .85rem; font-weight: 700; color: var(--primary); }
.card-meta { font-size: .9rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; padding: 4px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); width: fit-content; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-muted { background: var(--tint); color: var(--muted); }

.callout { background: var(--primary-soft); border-radius: var(--radius); padding: 18px 20px; }
.callout p { margin: 0; color: var(--text); }
.callout strong { display: block; margin-bottom: 2px; }
.callout-warn { background: var(--amber-soft); }

.cta-band {
    background: var(--navy); color: #c9cfe6; border-radius: var(--radius-lg); padding: 48px;
    display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 24px 48px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: var(--measure); }
.cta-band .kicker { color: #9fb4ff; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--primary-soft); color: var(--navy); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; } }

/* ---------- Home ---------- */
.home-hero { padding: 84px 0 40px; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.home-hero .lead { max-width: 44ch; }
.home-hero .btn-row { margin-top: 32px; }
@media (max-width: 900px) { .home-hero { padding: 56px 0 32px; } .home-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.status-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.hero-existing { margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.hero-panel { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 18px 44px rgba(18, 26, 58, .09); border: 1px solid var(--line); }
.hero-panel-label { display: block; font-size: .9rem; font-weight: 650; color: var(--muted); margin-bottom: 12px; }
.chip-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .88rem; font-weight: 650; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--tint); font-size: .95rem; }
.flow b { color: var(--ink); font-weight: 750; }
.flow li + li { position: relative; }
.flow li + li::before { content: ""; position: absolute; left: 26px; top: -10px; width: 2px; height: 10px; background: var(--line); }
.lead-center { margin-left: auto; margin-right: auto; max-width: 52ch; }
.btn-row-center { justify-content: center; margin-top: 24px; }

.check-strip {
    list-style: none; margin: 56px 0 0; padding: 18px 24px; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 24px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .95rem; font-weight: 600; color: var(--ink);
}
.check-strip li { display: flex; align-items: center; gap: 10px; }
.check-strip li::before {
    content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.5' fill='none' stroke='%23127a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (max-width: 1060px) { .check-strip { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (max-width: 640px) { .check-strip { grid-template-columns: 1fr; margin-top: 36px; } }

.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.tile {
    display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 30px;
    border-radius: var(--radius-lg); background: var(--tint); color: var(--text);
    transition: transform .15s, box-shadow .15s;
}
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 26, 58, .1); color: var(--text); }
.tile h3 { font-size: 1.45rem; margin: 0; }
.tile p { margin: 0; }
.tile-link { margin-top: auto; font-weight: 650; color: var(--primary); }
.tile-link::after { content: " →"; }
.tile-dark { background: var(--navy); color: #c9cfe6; }
.tile-dark:hover { color: #c9cfe6; }
.tile-dark h3, .tile-dark .tile-link { color: #fff; }
.tile-blue { background: var(--primary); color: #dfe6ff; }
.tile-blue:hover { color: #dfe6ff; }
.tile-blue h3, .tile-blue .tile-link { color: #fff; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile { min-height: 0; } }

.search-box { max-width: 640px; }
.search-label { display: block; font-weight: 650; font-size: .95rem; color: var(--ink); margin-bottom: 8px; }
.section-head-center .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 18px; box-shadow: 0 8px 24px rgba(18, 26, 58, .06); }
.search-field:focus-within { border-color: var(--primary); }
.search-icon { color: var(--muted); font-size: 1.25rem; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 10px 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #9298b0; }

.article-list { display: grid; gap: 12px; }
.article-row {
    display: grid; grid-template-columns: 170px 1fr; gap: 6px 18px; align-items: center;
    padding: 20px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
.article-row:hover { text-decoration: none; border-color: var(--primary); box-shadow: 0 10px 24px rgba(18, 26, 58, .06); }
.article-row > [aria-hidden], .article-row .card-num { display: none; }
.article-title { font-size: 1.08rem; font-weight: 700; color: var(--ink); display: block; letter-spacing: -.01em; }
.article-row .card-meta { display: block; }
.article-row .badge { justify-self: start; }
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; } }

/* ---------- Content pages ---------- */
.breadcrumb { font-size: .92rem; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); padding: 8px 0; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; margin-bottom: .35em; }

.steps { list-style: none; padding: 0; margin: 0 0 36px; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--tint); border-radius: var(--radius); }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
.article-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.article-aside .card a { padding: 7px 0; line-height: 1.35; }
.article-aside .card { gap: 2px; }
.article-aside .card .kicker { margin-bottom: 6px; }
/* On narrow screens the aside comes after the article, where "On this page" no longer helps. */
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; gap: 36px; } .article-aside { position: static; } .aside-toc { display: none; } }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--tint); color: var(--text); font-size: .93rem; font-weight: 600; }
.chip:hover { background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; }
.chip[aria-current] { background: var(--navy); color: #fff; }

.release { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.release:first-of-type { border-top: 0; }
.release-meta { display: grid; gap: 6px; align-content: start; }
.release-version { font-size: 1.05rem; font-weight: 750; color: var(--ink); }
.release ul { margin: 10px 0 18px; padding-left: 20px; }
.release li { margin-bottom: 4px; }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: 10px; } }

.status-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.status-row:first-child { border-top: 0; }
.status-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; background: var(--green-soft); color: var(--green); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 20px; font-weight: 700; }
.status-banner .card-meta { color: var(--green); font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; font-size: .95rem; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 720px; }
th, td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--tint); border-top: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
tbody th { font-weight: 700; color: var(--ink); }

.trust-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; margin-top: 28px; }
.trust-stat { background: var(--tint); border-radius: var(--radius-lg); padding: 24px; }
.trust-stat b { display: block; font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--primary); margin-bottom: 10px; }
.trust-stat span { color: var(--muted); font-size: .95rem; }

.doc-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-row h3 { margin: 8px 0 4px; }
.doc-row p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: 0 18px 44px rgba(18, 26, 58, .06); }
@media (max-width: 600px) { .form-card { padding: 22px 18px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: .88rem; color: var(--muted); margin: -2px 0 6px; }
.field input[type=text], .field input[type=email], .field input[type=url], .field input[type=tel], .field textarea {
    width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid rgba(36, 81, 214, .15); outline-offset: 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-error { color: var(--red); font-size: .9rem; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); }

.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--tint); font-weight: 600; }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--white); font-weight: 700; font-size: .8rem; }
.stepper li[aria-current] { color: var(--primary-dark); background: var(--primary-soft); }
.stepper li[aria-current] span { background: var(--primary); color: #fff; }
.stepper li.done span { background: var(--green-soft); color: var(--green); }

.topic-list { display: grid; gap: 10px; border: 0; padding: 0; margin: 0 0 24px; }
.topic-list legend { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
.topic-list > p { margin-bottom: 14px; }
.topic {
    display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center; padding: 15px 18px;
    border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; font-weight: 550;
}
.topic:hover { border-color: var(--primary); }
.topic:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); }
.topic input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.topic .card-num, .topic-arrow { display: none; }

.route-box { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--tint); margin-bottom: 24px; }
.route-box b { display: block; }
.route-box p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.route-box .badge { margin-bottom: 8px; }

.review { display: grid; grid-template-columns: 200px 1fr; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review dt, .review dd { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
.review dt { color: var(--muted); font-size: .95rem; background: var(--tint); }
.review dd { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.review dt:first-of-type, .review dd:first-of-type { border-top: 0; }
@media (max-width: 600px) { .review { grid-template-columns: 1fr; } .review dd { border-top: 0; } }

.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; }

.mail-fallback { margin: 18px 0 0; }
.mail-fallback summary { color: var(--primary); font-weight: 650; font-size: .95rem; }
.mail-fallback textarea { width: 100%; margin-top: 10px; font: .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); color: var(--ink); }

.reseller-card { gap: 12px; }
.reseller-avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.contact-facts { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 8px 0 0; font-size: .95rem; }
.contact-facts dt { color: var(--muted); }
.contact-facts dd { margin: 0; color: var(--ink); }

.card .arrow-link + .arrow-link { margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); margin-top: 96px; padding: 64px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-brand p { margin: 16px 0 0; max-width: 34ch; }
.muted-inverse { color: var(--muted) !important; }
.footer-title { font-size: .95rem; font-weight: 750; color: var(--ink); margin: 6px 0 14px; letter-spacing: -.01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer ul a { display: inline-block; padding: 3px 0; }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* ---------- Reseller sign-up ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.choice-list { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-list legend { font-weight: 650; font-size: .95rem; color: var(--ink); margin-bottom: 8px; }
.choice-list .field-error { grid-column: 1 / -1; }
@media (max-width: 600px) { .choice-list { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check-list li::before {
    content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.5' fill='none' stroke='%23127a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
/* ---------- Roadmap ---------- */
.roadmap-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.roadmap-stat { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--tint); color: var(--text); border: 1.5px solid transparent; }
.roadmap-stat:hover { text-decoration: none; border-color: var(--line); color: var(--text); }
.roadmap-stat[aria-current] { border-color: var(--ink); }
.roadmap-stat b { font-size: 2.2rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.roadmap-stat span { font-weight: 650; }
.roadmap-stat-available { background: var(--green-soft); }
.roadmap-stat-available b { color: var(--green); }
.roadmap-stat-partly-available { background: var(--primary-soft); }
.roadmap-stat-partly-available b { color: var(--primary); }
.roadmap-stat-planned b { color: var(--muted); }
@media (max-width: 640px) { .roadmap-summary { grid-template-columns: 1fr; } }

.chip-clear { background: var(--white); border: 1px solid var(--line); }
.badge-blue { background: var(--primary-soft); color: var(--primary-dark); }

.roadmap-kind { margin-top: 48px; margin-bottom: 4px; }
.roadmap-kind-intro { margin-bottom: 20px; }
.roadmap-group { margin-bottom: 28px; }
.roadmap-group h3 { margin-bottom: 10px; }
.roadmap-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.roadmap-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); }
.roadmap-item:first-child { border-top: 0; }
.roadmap-title { display: block; font-weight: 700; color: var(--ink); }
.roadmap-desc { display: block; color: var(--muted); font-size: .95rem; }
.roadmap-meta { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
@media (max-width: 640px) { .roadmap-item { grid-template-columns: 1fr; } .roadmap-meta { justify-content: flex-start; } }
.roadmap-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 28px; font-size: .92rem; }
.roadmap-legend div { display: grid; gap: 6px; }
.roadmap-legend dt, .roadmap-legend dd { margin: 0; }
.roadmap-legend dd { color: var(--muted); }
@media (max-width: 760px) { .roadmap-legend { grid-template-columns: 1fr; } }

/* ---------- Partner directory ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.partner-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.partner-card h3 { margin: 4px 0 0; font-size: 1.3rem; }
.partner-card p { margin: 0; color: var(--text); }
.partner-platinum { border-color: #b9c0d6; box-shadow: 0 16px 36px rgba(18, 26, 58, .08); }
.partner-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.partner-logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.partner-initial { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 800; font-size: 1.2rem; }
.partner-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 4px 0 0; font-size: .92rem; }
.partner-facts dt { color: var(--muted); }
.partner-facts dd { margin: 0; color: var(--ink); }
.partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; }
.partner-actions .arrow-link { padding: 10px 0; }

.tier-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.tier-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tier-platinum { background: #1f2440; color: #e6e9f5; }
.tier-gold { background: #fdf1d6; color: #8a5a00; }
.tier-silver { background: #eceff4; color: #4a5168; }
.tier-partner { background: var(--primary-soft); color: var(--primary-dark); }
.tier-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }

/* Knowledge base overview */
.guide-groups { display: grid; gap: 56px; }
.guide-group-head { margin-bottom: 20px; }
.guide-group-head h2 { margin: 0 0 6px; }
.guide-group-head p { margin: 0; color: var(--muted); }

/* Standards pages */
.tick-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.tick-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.tick-list li::before {
    content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.5' fill='none' stroke='%23127a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.faq { display: grid; gap: 10px; }
.faq details { background: var(--tint); border-radius: var(--radius); padding: 0 20px; }
.faq summary { padding: 16px 0; font-weight: 650; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }

/* ---------- About ---------- */
.facts { margin: 16px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 650; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
