/* wsCAPTCHA page. Builds on web.css (hero, strip, split, lists, FAQ). */
.hero-cp h1 .hl { color: var(--teal); display: block; }
.hero-cp .page-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.cp-eyebrow { color: var(--teal-700); margin-bottom: 10px; }

/* the click-to-verify box: same look as the real widget (api.js) */
.cp-widget { display: flex; align-items: center; gap: 12px; width: 324px; max-width: 100%; height: 74px; box-sizing: border-box; padding: 0 12px 0 16px; border: 1px solid #d7dce3; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .06); color: #1f2937; font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: left; cursor: pointer; user-select: none; }
.cp-widget:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.cp-box { position: relative; flex: none; display: grid; place-items: center; box-sizing: border-box; width: 30px; height: 30px; border: 2px solid #b8c0cc; border-radius: 7px; background: #fff; transition: border-color .15s, background .15s; }
.cp-widget:hover .cp-box { border-color: #2563eb; }
.cp-box .ic { width: 20px; height: 20px; color: #fff; stroke-width: 3; display: none; }
.cp-spin { display: none; width: 18px; height: 18px; border: 2.5px solid #c7d2fe; border-top-color: #2563eb; border-radius: 50%; animation: cp-turn .8s linear infinite; }
.cp-label { flex: 1; min-width: 0; }
.cp-brand { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; letter-spacing: .2px; color: #0b1220; }
.cp-brand img { width: 30px; height: 30px; }
/* the hero rules for screenshots (.page-hero-media img) must not touch the mark */
.hero-web .page-hero-media .cp-brand img { width: 30px; max-width: none; height: 30px; margin: 0; border-radius: 0; background: none; box-shadow: none; filter: none; }
.cp-widget.is-busy { cursor: default; }
.cp-widget.is-busy .cp-box { border-color: transparent; }
.cp-widget.is-busy .cp-spin { display: block; }
.cp-widget.is-done { cursor: default; }
.cp-widget.is-done .cp-box { border-color: #16a34a; background: #16a34a; }
.cp-widget.is-done .cp-box .ic { display: block; }
@keyframes cp-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cp-spin { animation-duration: 2s; } }

/* hero form card + toast */
.cp-hero-media { position: relative; display: flex; justify-content: center; padding-bottom: 8px; }
.cp-card { width: min(100%, 380px); padding: 24px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.cp-card h2 { margin: 0 0 14px; font-size: 1.15rem; }
.cp-field { margin-bottom: 12px; }
.cp-field span { display: block; margin-bottom: 4px; font-size: .74rem; font-weight: 600; color: #5b6b8c; }
.cp-input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; color: #9aa7bf; background: #fff; }
.cp-card .cp-widget { margin: 6px auto 14px; }
.cp-submit { padding: 11px; border-radius: 8px; background: #1f5eff; color: #fff; font-weight: 600; font-size: .9rem; text-align: center; }
.cp-toast { position: absolute; right: -4px; bottom: -6px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, .4); animation: cp-pop .3s ease both; }
.cp-toast[hidden] { display: none; }
.cp-toast strong { display: block; font-size: .86rem; }
.cp-toast span:not(.cp-toast-ic) { font-size: .78rem; color: #5b6b8c; }
.cp-toast-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-500); color: #fff; flex: none; }
.cp-toast-ic .ic { width: 18px; height: 18px; }
@keyframes cp-pop { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 900px) { .cp-toast { position: static; margin: 14px auto 0; } .cp-hero-media { flex-direction: column; align-items: center; } }

/* strip with three items */
.cp-strip .web-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-strip li { text-align: left; }
.cp-strip strong { display: block; color: #fff; font-weight: 600; }
.cp-strip li span { display: block; font-size: .84rem; color: #b9cdf5; }
@media (max-width: 900px) { .cp-strip .web-strip-grid { grid-template-columns: 1fr; } }

/* interactive demo */
.cp-demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.cp-states { display: inline-flex; padding: 4px; border-radius: 10px; background: #eaf1fc; border: 1px solid var(--line); }
.cp-states span { padding: 8px 18px; border-radius: 7px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.cp-states span.is-on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(11, 27, 58, .1); }
.cp-demo { display: grid; grid-template-columns: minmax(0, 400px) auto minmax(0, 1fr) auto; gap: clamp(16px, 2.5vw, 36px); align-items: center; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(11, 27, 58, .08); }
.cp-demo-stage { padding: 18px; border-radius: 14px; background: var(--bg-soft); }
.cp-demo-stage { display: flex; justify-content: center; }
.cp-arrow .ic { width: 28px; height: 28px; color: var(--muted); }
.cp-demo-copy h3 { font-size: 1.15rem; margin-bottom: 6px; }
.cp-demo-copy p { color: var(--muted); max-width: 52ch; }
.cp-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.cp-note.is-left { text-align: left; }
@media (max-width: 960px) { .cp-demo { grid-template-columns: 1fr; } .cp-arrow { display: none; } .cp-demo .btn { justify-self: start; } }

/* diagram */
.cp-flow { margin: 0; padding: clamp(14px, 2vw, 24px); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(11, 27, 58, .1); }
.cp-flow-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.cp-flow-svg .f-bot rect { fill: #fff0ee; stroke: #ffb9b1; }
.cp-flow-svg .f-bot circle { fill: #ffd9d4; }
.cp-flow-svg .f-human rect { fill: #effcf8; stroke: #8fdcc8; }
.cp-flow-svg .f-human circle { fill: #c9f3e8; }
.cp-flow-svg .f-x { stroke: #c0301f; stroke-width: 3; stroke-linecap: round; fill: none; }
.cp-flow-svg .f-ok { stroke: #0b8d79; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.cp-flow-svg .f-ok.is-big { stroke: #fff; stroke-width: 6; }
.cp-flow-svg .f-t { font-size: 15px; font-weight: 700; fill: var(--ink); }
.cp-flow-svg .f-s { font-size: 13px; fill: #5b6b8c; }
.cp-flow-svg .f-line { fill: none; stroke-width: 3; stroke-linecap: round; }
.cp-flow-svg .f-line.is-bad { stroke: #ff7d72; stroke-dasharray: 3 8; }
.cp-flow-svg .f-line.is-good { stroke: var(--teal-500); }
.cp-flow-svg .f-shield { fill: #d6f5ee; stroke: #8fdcc8; stroke-width: 2; }
.cp-flow-svg .f-shield-in { fill: var(--teal-500); }
.cp-flow-svg .f-form rect:first-child { fill: #fff; stroke: #cdd8ea; stroke-width: 2; }
.cp-flow-svg .f-in { fill: #f4f8fc; stroke: var(--line); }
.cp-flow-svg .f-btn { fill: #1f5eff; }
.cp-flow-svg .f-btn-t { font-size: 13px; font-weight: 700; fill: #fff; }

/* migration */
.cp-from { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.cp-from-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cp-from-card h3 { font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -.02em; }
.cp-same { margin: 0 0 14px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.cp-points { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.cp-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text); }
.cp-points .ic { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--teal-700); }
.cp-points code { padding: 1px 6px; border-radius: 5px; background: #eaf1fc; color: var(--ink); font-size: .82em; word-break: break-all; }
.cp-from-card .link-teal { margin-top: auto; font-size: .9rem; }
.cp-table-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cp-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: .86rem; }
.cp-table caption { padding: 16px 20px 6px; text-align: left; font-weight: 700; color: var(--ink); caption-side: top; }
.cp-table th, .cp-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cp-table thead th { border-top: 0; font-size: .84rem; color: var(--ink); }
.cp-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cp-table code { font-size: .78rem; overflow-wrap: anywhere; color: #6d7b98; }
.cp-table .is-new { background: #effcf8; }
.cp-table thead th.is-new { color: var(--teal-700); }
.cp-table td.is-new code { color: #0b6b5a; font-weight: 600; }
@media (max-width: 1100px) { .cp-from { grid-template-columns: 1fr; } }
.cp-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.cp-bottom li { display: flex; gap: 16px; align-items: flex-start; }
.cp-bottom h3 { font-size: 1.04rem; margin-bottom: 4px; }
.cp-bottom p { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .cp-bottom { grid-template-columns: 1fr; } }

/* integration */
.cp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; padding: 0; list-style: none; }
.cp-steps li { display: flex; gap: 14px; align-items: flex-start; }
.cp-step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-500); color: #fff; font-weight: 700; }
.cp-steps h3 { font-size: 1.04rem; margin-bottom: 3px; }
.cp-steps p { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .cp-steps { grid-template-columns: 1fr; } }
.cp-code { border-radius: 16px; overflow: hidden; background: #071634; box-shadow: 0 24px 60px -24px rgba(6, 22, 51, .7); }
.cp-code-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #0b1f45; border-bottom: 1px solid rgba(255, 255, 255, .08); flex-wrap: wrap; }
.cp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cp-tabs button { padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: #9db7ea; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.cp-tabs button:hover { color: #fff; }
.cp-tabs button[aria-selected="true"] { background: rgba(31, 224, 196, .16); color: #4ee0cc; }
.cp-tabs button:focus-visible, .cp-copy:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cp-code-title { margin-left: auto; font-size: .82rem; color: #9db7ea; }
.cp-copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: transparent; color: #e6edff; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.cp-copy:hover { background: rgba(255, 255, 255, .08); }
.cp-copy .ic { width: 16px; height: 16px; }
.cp-pane { margin: 0; padding: 22px 24px; overflow-x: auto; color: #d6e3ff; font: .86rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.cp-pane[hidden] { display: none; }
.cp-pane code { font: inherit; background: none; color: inherit; padding: 0; }
.cp-code-foot { margin: 24px 0 0; }

/* Web Protection band */
.cp-webband { padding-block: clamp(28px, 4vw, 48px); }
.cp-band { display: flex; align-items: center; gap: 22px; padding: 26px 30px; border: 1px solid #bdeadf; border-radius: 20px; background: linear-gradient(90deg, #effcf8, #f4faff); }
.cp-band > div { flex: 1; }
.cp-band .live-tag { margin-bottom: 8px; }
.cp-band h2 { font-size: 1.4rem; margin-bottom: 4px; }
.cp-band p:not(.live-tag) { margin: 0; color: var(--text); }
@media (max-width: 760px) { .cp-band { flex-direction: column; align-items: flex-start; } }

/* management mock */
.cp-panel { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(11, 27, 58, .12); }
.cp-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cp-panel-head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.cp-panel-head img { width: 26px; height: 26px; }
.cp-panel-add { padding: 8px 14px; border-radius: 8px; background: #1f5eff; color: #fff; font-size: .8rem; font-weight: 600; }
.cp-panel-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.cp-panel-row.is-head { padding-block: 10px; background: #f8fafd; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cp-panel-row em { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #d6f5ee; color: #0b7a66; font-size: .7rem; font-style: normal; font-weight: 700; }
.cp-panel-row code { font-size: .8rem; color: var(--muted); }
.cp-dots { color: var(--muted); text-align: center; }
.cp-usage { padding: 18px 20px 20px; }
.cp-usage p { margin: 0 0 8px; font-size: .84rem; font-weight: 600; }
.cp-usage .cp-usage-n { margin: 8px 0 0; font-weight: 500; color: var(--muted); }
.cp-meter { height: 10px; border-radius: 999px; background: #e8eef8; overflow: hidden; }
.cp-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--teal)); }
.cp-panel figcaption { padding: 8px 20px 12px; font-size: .72rem; color: var(--muted); text-align: right; }

/* "What is" and the visitor / server explanation */
.cp-what { padding-bottom: 0; }
.cp-what .web-head { margin-bottom: 0; max-width: 78ch; }
.cp-what .lead + .lead { margin-top: 12px; }
.cp-flow2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.cp-flow2 article { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.cp-flow2 h3 { font-size: 1.04rem; margin-bottom: 4px; }
.cp-flow2 p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .cp-flow2 { grid-template-columns: 1fr; } }
