/* The "Try it" panels on the product pages and the /try hub. Builds on .tryit, .panel, .verdict, .badge and .reasonlist from theme.css. */

/* Every try-it section is section#try.try-sec: a full-width band with a .wrap on the product pages, or a plain section inside main.page.
   Either way the head is the same: a short verb-first h2 and one sentence, left-aligned above the two panels. */
.try-sec { margin-top: 36px; scroll-margin-top: 64px; }
main:not(.page) > .try-sec { margin-top: 0; padding: 72px 0; background: var(--bg-soft); }
.try-sec .section-head { margin: 0 0 22px; text-align: left; max-width: 760px; }
.try-sec .section-head h2 { margin-bottom: 6px; }
.try-sec .section-head p { margin: 0; color: var(--ink-2); }
.tryit { align-items: start; }
.tryit + .tryit { margin-top: 22px; }
/* Grid items default to their content's width: without these a long JSON line or table would widen the page on a phone. */
.tryit > .panel, .tryit .panel > *, .try-out, .try-out > *, [data-live], [data-more] { min-width: 0; }
.tryit .panel label { margin: 0 0 6px; }
.tryit .panel input, .tryit .panel select { max-width: 100%; }
.tryit form { display: grid; gap: 12px; margin: 0; }
.try-field select { width: 100%; }
.try-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.try-fieldset > legend { padding: 0; margin-bottom: 8px; }
.try-label { margin: 0 0 6px; }
.try-list { display: grid; gap: 6px; }
.try-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.try-row > .grow { flex: 1 1 200px; min-width: 0; }
.try-row > .narrow { flex: 0 1 160px; min-width: 0; }
.try-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.try-status { margin: 0; min-height: 1.4em; color: var(--muted); font-size: 14.5px; }
.try-status.err { color: var(--bad); }
.try-note { margin: 0; color: var(--muted); font-size: 13.5px; }

/* Sample inputs: small buttons that fill the form and run it. */
.try-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.try-samples > span { font-size: 13px; color: var(--muted); margin-right: 2px; }
.try-samples button { padding: 5px 10px; font-size: 13px; font-weight: 600; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.try-samples button:hover { background: var(--surface); border-color: var(--muted); }

/* Segmented choice (US account / IBAN, dispute scenarios). */
.try-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.try-seg.stack { display: grid; }
.try-seg label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--ink); }
.try-seg label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.try-seg input { width: auto; margin: 0; accent-color: var(--accent); }
.try-seg label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Result panel. */
.tryit .result { align-content: start; }
.tryit .result .verdict .badge:empty { display: none; }
.tryit .result .verdict .lvl { white-space: normal; }
.try-out .verdict b { text-transform: none; }
.try-table code, .try-table td:nth-child(2) { white-space: nowrap; }
.try-summary { margin: 0; }
.try-stack { display: grid; gap: 12px; }
ul.try-missing { margin: 0; padding-left: 18px; }
.try-table caption { text-align: left; padding: 8px 10px; }
.try-out .reasonlist li.none { display: block; }
.try-out { display: grid; gap: 14px; }
.try-out .reasonlist li { grid-template-columns: 46px 1fr; }
.try-out .reasonlist .pts { font-size: 12.5px; text-align: left; }
.try-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.try-facts > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.try-facts dt { font: 500 13px/1.3 var(--font); color: var(--muted); }
.try-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.try-facts dd.ok { color: var(--ok); } .try-facts dd.bad { color: var(--bad); } .try-facts dd.warn { color: var(--warn); }
details.try-raw { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
details.try-raw > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
details.try-raw > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
details.try-raw pre { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); max-height: 380px; font-size: 12.5px; padding-right: 18px; }
.try-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.try-table th, .try-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.try-table th { font: 600 13px/1.3 var(--font); color: var(--muted); }
.try-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.try-scroll .try-table tr:last-child td { border-bottom: 0; }
blockquote.try-quote { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14.5px; }

/* Camera panels: the picture and everything on it is camera-ui.css. */
.try-meter { height: 6px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.try-meter > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* Bank statement for the micro-deposit walk-through. */
.try-statement { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; font: 14px/1.5 var(--mono); background: var(--surface-2); }
.try-statement div { display: flex; justify-content: space-between; gap: 12px; }
.try-statement div + div { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.try-cents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Device list (Trusted Devices). */
.try-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.try-devices li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface-2); }
.try-devices li.revoked { opacity: .7; text-decoration: line-through; }

.tryit .try-gap { margin-top: 12px; }
.try-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tryit .panel label.try-check { margin: 0; }
.try-check input { width: auto; margin: 0; accent-color: var(--accent); }
.try-stack { display: grid; gap: 10px; }
.try-stack > p { margin: 0; }

/* Alerts (Transaction Monitoring) and other matches (Sanctions Screening). */
.try-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.try-alerts li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--surface-2); min-width: 0; }
.try-alerts li > span:last-child { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.try-sev { font: 600 13px/1 var(--font); padding: 4px 8px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); }
.try-sev.high, .try-sev.critical, .try-sev.strong { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.try-sev.medium, .try-sev.possible { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* /try hub: a short card per product, grouped by the job it does. */
.try-group { font-size: 24px; margin: 40px 0 14px; }
.try-group:first-of-type { margin-top: 0; }
.try-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.try-hub a { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.try-hub a:hover, .try-hub a:focus-visible { border-color: var(--accent); }
.try-hub a b { font: 640 19px/1.25 var(--display); letter-spacing: -.012em; }
.try-hub a p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.try-hub a .go { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .tryit .panel { padding: 18px; }
  .try-cents { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .try-meter > i { transition: none; }
}
/* Sample mode (the public pages): the fields are filled by the sample chips, not typed, and a note says where the live checks are. */
.tryit.try-sample input[readonly] { background: var(--surface-2); color: var(--ink-2); cursor: default; }
.tryit.try-sample select:disabled, .tryit.try-sample input:disabled { opacity: .75; }
.try-sample-note { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); }
/* The live demos page in the consoles: one section per service. */
.live-demos { display: grid; gap: 28px; }
.live-demos > section > h2 { margin: 0 0 4px; font-size: 20px; }
.live-demos > section > p { margin: 0 0 12px; color: var(--muted); max-width: 70ch; }
.live-jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }

/* ========== product pages ========== */
/* The hero picture: inline SVG line work on a dark panel (plan 22, IV53 stage 2, as the owner's canvas draws it): a white line, the accent
   for what a model is looking at, neutral fills. The seal colors are for verdicts only. */
.pic { width: 100%; max-width: 540px; justify-self: end; }
.pic.on-dark { box-sizing: border-box; padding: 26px 26px 18px; border-radius: var(--radius-lg); }
.pic.on-dark figcaption { color: var(--muted); }
.pic svg { overflow: visible; }
.pic svg text { font: 15px var(--font); fill: var(--ink); }
.pic svg .p-b { font-weight: 640; }
.pic svg .p-mute { fill: var(--muted); }
.pic svg .p-mid { text-anchor: middle; }
.pic svg .p-mono { font-family: var(--mono); }
.pic svg .p-s14 { font-size: 14px; } .pic svg .p-s17 { font-size: 17px; } .pic svg .p-s21 { font-size: 21px; } .pic svg .p-s26 { font-size: 26px; } .pic svg .p-s74 { font-size: 74px; }
.pic .p-paper { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.3; }
.pic .p-aqua, .pic .p-lilac, .pic .p-apricot { fill: var(--surface-2); }
.pic .p-edge { stroke: var(--accent); stroke-width: 1.6; }
.pic .p-quiet { fill: var(--bg-tint); stroke: var(--line-strong); stroke-width: 1.2; }
.pic .p-ink, .pic .p-link, .pic .p-dash, .pic .p-thin, .pic .p-hair, .pic .p-wave { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pic .p-ink { stroke: var(--ink); stroke-width: 1.8; } .pic .p-ink.p-fat { stroke-width: 9; }
.pic .p-link { stroke: var(--accent); stroke-width: 1.5; }
.pic .p-dash { stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 5 5; }
.pic .p-thin { stroke: var(--line-strong); stroke-width: 1.4; }
.pic .p-hair { stroke: var(--accent); stroke-width: .6; opacity: .35; }
.pic .p-wave { stroke: var(--seal); stroke-width: 1.8; }
.pic .p-solid { fill: var(--ink); } .pic .p-dot { fill: var(--accent); }
.pic svg .p-url { fill: var(--accent); text-decoration: underline; }
.pic .p-stamp { color: var(--ok); } .pic .p-stamp.p-rev { color: var(--warn); } .pic .p-stamp.p-no { color: var(--seal); }
.pic .p-stamp rect { fill: var(--surface); stroke: currentColor; stroke-width: 2.2; }
.pic .p-stamp rect + rect { fill: none; stroke-width: .9; }
.pic svg .p-stamp text { fill: currentColor; font-family: var(--display); font-weight: 760; text-anchor: middle; }
.pic .seal { min-width: 0; padding: 9px 15px; border-width: 2px; outline-offset: -6px; border-radius: var(--radius-sm); font-size: 17px; }
/* A product page's header picture moves a little (.pic-live): objects float, a scan passes, a line shimmers. Transforms and opacity only, so
   nothing reflows; with reduced motion it stands still. */
.pic-live .pa-float, .pic-live .pa-pulse { transform-box: fill-box; transform-origin: center; }
.pic-live .pa-float { animation: pa-float 6s ease-in-out infinite; }
.pic-live .pa-late { animation-delay: -3s; }
.pic-live .pa-d1 { animation-delay: -1.2s; } .pic-live .pa-d2 { animation-delay: -2.4s; } .pic-live .pa-d3 { animation-delay: -3.6s; }
.pic-live .pa-pulse { animation: pa-pulse 3.6s ease-in-out infinite; }
.pic-live .pa-shimmer { animation: pa-shimmer 4.8s ease-in-out infinite; }
.pic-live .pa-scan { fill: var(--accent); opacity: 0; animation: pa-scan 4.2s ease-in-out infinite; }
.pic-live .pa-flow { animation: pa-flow 1.6s linear infinite; }
@keyframes pa-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pa-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes pa-shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes pa-scan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .45; } 70% { transform: translateY(200px); opacity: .45; } 80%, 100% { transform: translateY(200px); opacity: 0; } }
@keyframes pa-flow { to { stroke-dashoffset: -10; } }
@media (prefers-reduced-motion: reduce) { .pic-live .pa-float, .pic-live .pa-pulse, .pic-live .pa-shimmer, .pic-live .pa-scan, .pic-live .pa-flow { animation: none; } }
.pic-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pic-rows li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 0; padding: 12px 20px 12px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.pic-rows b { display: block; font: 640 18px/1.25 var(--display); }
.pic-rows li span:not(.seal) { color: var(--muted); font-size: 15px; }
@media (max-width: 920px) { .pic { justify-self: start; } main:not(.page) > .try-sec { padding: 52px 0; } }
@media (max-width: 920px) { .tryit .result { min-height: 0; } }
@media (max-width: 480px) { .pic svg text { font-size: 16.5px; } .pic-rows li { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; } .pic .seal { font-size: 15px; padding: 7px 11px; } }

/* A public panel's reasons are sentences alone, and its answer carries no code. */
.try-out .reasonlist li.plain { display: block; }

/* ========== the live Photo Proof test (photo-test.js): what to do now, the verdict, and the photos side by side ========== */
[data-photo-test] .m0, [data-key-test] .m0 { margin: 0; }
.pt-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.pt-steps li { margin: 0; }
.pt-link { display: grid; gap: 10px; min-width: 0; }
.pt-link input { width: 100%; min-width: 0; font-size: 14px; }
.pt-end { padding-top: 12px; border-top: 1px solid var(--line); }
.pt-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; align-items: start; min-width: 0; }
.tryit .pt-card { align-content: start; min-width: 0; }
.pt-card .reasonlist li.plain { display: block; }
.pt-h { margin: 0; font: 640 18px/1.25 var(--display); }
[data-photo-test-host], [data-key-test-host] { margin-bottom: 28px; }
[data-photo-test] [data-stage]:empty, [data-photo-test] [data-idle][hidden], [data-key-test] [data-stage]:empty, [data-key-test] [data-idle][hidden] { display: none; }
[data-photo-test-host] > p, [data-key-test-host] > p { margin: 4px 0 16px; }
.pt-all > summary { cursor: pointer; padding: 4px 0 10px; font: 640 16px/1.25 var(--display); }
.pt-all > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
.pt-pic { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pt-pic.none { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--muted); font-size: 14.5px; }
.pt-limits { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 14.5px; }
.pt-limits li { margin: 0; }
.pt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-checks li { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.pt-check { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.pt-checks p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.pt-res { flex: none; font: 600 13px/1.3 var(--font); color: var(--muted); }
.pt-checks .clear .pt-res { color: var(--ok); } .pt-checks .found .pt-res { color: var(--bad); } .pt-checks .unknown .pt-res { color: var(--warn); }
.pt-checks .not_run b { font-weight: 500; }

/* ========== /try: the demo player (demo-player.css) above the products ========== */
.sheet.hub > .wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 44px; }
/* A product's live tests: one card, one tab per test. The same card sits on its product page (section#try) and on /try. Without script a
   link to a tab (#try-email) still shows it. */
.trycard { display: grid; gap: 18px; min-width: 0; }
.trycard .tabs-nav { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.trycard .tabs-nav button { padding: 8px 14px; }
.trytab { display: grid; gap: 14px; min-width: 0; scroll-margin-top: 80px; }
.trytab[hidden] { display: none; }
.trytab[hidden]:target { display: grid; }
.try-line { margin: 0; color: var(--ink-2); max-width: 760px; }
.try-card + .try-card { margin-top: 56px; }
.try-card > h2 { margin: 0 0 6px; }
.try-card > h2 a { color: inherit; text-decoration: none; }
.try-card > h2 a:hover { color: var(--accent); text-decoration: underline; }
.try-card > p { margin: 0 0 18px; color: var(--ink-2); }
@media (max-width: 480px) { .trycard .tabs-nav button { padding: 7px 10px; font-size: 14px; } }
