:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --subtle: #98a2b3;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e4e7ec;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #138a63;
  --red: #c9364f;
  --trustturn-orange: #f68220;
  --trustturn-green: #238b49;
  --trustturn-yellow: #d99a00;
  --trustturn-loading: #176b3a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
.topbar, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; flex: none; color: var(--trustturn-orange); background: transparent; border-radius: 8px; }
.brand-mark svg { display: block; width: 32px; height: 32px; }
.brand strong, .brand small { display: block; }
.brand strong { color: #101828; font-size: 14px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
nav { display: flex; gap: 26px; color: var(--muted); font-size: 13px; }
nav a:hover { color: var(--blue); }
main { padding: 58px 0 64px; }
.hero { max-width: 720px; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hero h1 { margin: 0; color: #101828; font-size: clamp(36px, 5vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
.hero-copy { max-width: 640px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-badges span, .pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); background: var(--surface); font-size: 11px; }
.hero-action { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:16px 0 0; color:var(--subtle); font-size:12px; }
.text-link { color:var(--trustturn-orange); font-weight:600; }
.text-link:hover { text-decoration:underline; text-underline-offset:3px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; margin-top: 44px; }
.panel, .info-card { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; box-shadow: 0 4px 18px rgba(16, 24, 40, .04); }
.panel { padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel h2 { margin: 0; color: #101828; font-size: 20px; letter-spacing: -.025em; }
.pill { white-space: nowrap; }
.pill:empty { display: none; }
.pill.ready, .status.ready { color: var(--green); }
.pill.success, .status.success { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.pill.error, .status.error { color: var(--red); border-color: #fecdca; background: #fff6f6; }
.status.working { color: #b54708; }
.consent-box { margin-top: 24px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.switch-row { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 20px; height: 20px; flex: none; border: 1.5px solid #98a2b3; border-radius: 5px; background: white; transition: 140ms ease; }
.switch-row input:checked + .switch-ui { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px white; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { color: #344054; font-size: 13px; }
.switch-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.primary-button { width: 100%; margin-top: 16px; padding: 11px 16px; border: 1px solid var(--blue); border-radius: 8px; color: white; background: var(--blue); cursor: pointer; font-weight: 600; }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.checkbox-mount { min-height: 65px; margin-top: 16px; }
.checkbox-initializer { height: 65px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.initializer-spinner { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #d0d5dd; border-top-color: var(--trustturn-orange); border-radius: 50%; animation: trustturn-init-spin .8s linear infinite; }
.checkbox-mount.is-init-error .checkbox-initializer { color: var(--red); }
.initializer-error-mark { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: 0 0 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; }
.checkbox-card { position: relative; width: 100%; min-width: 0; max-width: 100%; height: 65px; display: flex; align-items: center; gap: 9px; margin-top: 0; padding: 12px 8px; overflow: hidden; border: 1px solid #d9d9d9; background: #f8f8f8; border-radius: 0; cursor: default; transition: 140ms ease; }
.checkbox-card.is-rendering { animation: trustturn-widget-in .28s ease-out both; }
.checkbox-indicator:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; }
.checkbox-card:hover { border-color: #d9d9d9; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.checkbox-card.is-loading { cursor: default; }
.checkbox-card.is-ready { border-color: #d9d9d9; }
.checkbox-card.is-error { border-color: #fda29b; background: #fff8f7; }
.checkbox-card.is-expired { border-color: #d9d9d9; background: #f8f8f8; }
.checkbox-indicator { width: 24px; height: 24px; display: grid; place-items: center; position: relative; flex: 0 0 24px; border: 2px solid #858585; border-radius: 2px; color: #067647; background: #ffffff; font-size: 15px; font-weight: 700; cursor: pointer; transition: width .32s cubic-bezier(.22,.75,.32,1), height .32s cubic-bezier(.22,.75,.32,1), flex-basis .32s cubic-bezier(.22,.75,.32,1), border-color .25s ease, border-radius .32s ease, background-color .25s ease, opacity .25s ease, transform .32s cubic-bezier(.22,.75,.32,1); will-change: width, height, transform, opacity; }
.checkbox-card:not(.is-loading):not(.is-orbiting):not(.is-success):not(.is-failure):not(.is-expired) .checkbox-indicator:hover { border-color: #555555; box-shadow: 0 0 0 1px rgba(85, 85, 85, .12); }
.checkbox-card.is-loading .checkbox-indicator { cursor: default; }
.checkbox-card.is-success .checkbox-indicator { cursor: default; }
.checkbox-indicator.is-returning { animation: trustturn-return-breathe .72s cubic-bezier(.22,.75,.32,1) 1 both !important; }
.checkbox-card.is-loading .checkbox-indicator { width: 32px; height: 32px; flex-basis: 32px; border: 0; border-radius: 50%; background: transparent; }
.loading-dots { position: relative; display: block; width: 32px; height: 32px; }
.loading-dots i { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: var(--trustturn-loading); transform: rotate(calc(var(--i) * 45deg)) translateY(-13px); transform-origin: center; animation: trustturn-dot-fade 1.05s linear infinite; animation-delay: calc(var(--i) * -0.13s); }
.checkbox-card.is-orbiting .checkbox-indicator { width: 28px; height: 28px; flex-basis: 28px; border: 0; border-radius: 50%; background: transparent; cursor: default; animation: trustturn-orbit-stage-in .14s ease-out both; }
.checkbox-card.is-orbiting-exit .checkbox-indicator { animation: trustturn-orbit-stage-out .12s ease-in both; }
.success-orbit { position: relative; display: block; width: 28px; height: 28px; animation: trustturn-success-orbit .22s linear infinite; }
.success-orbit::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(102, 112, 133, .18); border-radius: 50%; }
.success-orbit i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #667085; transform: rotate(calc(var(--i) * 180deg)) translateX(9.5px); }
.success-orbit i:last-child { background: #98a2b3; }
.checkbox-card.is-ready-transition .checkbox-indicator { transform: scale(.72); opacity: .12; }
.checkbox-card.is-ready-transition.is-ready .checkbox-indicator { animation: trustturn-ready-pop .58s cubic-bezier(.22,.75,.32,1) both; }
.checkbox-card.is-ready-transition .loading-dots { animation: trustturn-dots-exit .24s ease-out forwards; }
.checkbox-card.is-success { border-color: #d9d9d9; background: #f8f8f8; }
.checkbox-card.is-failure { border-color: #d9d9d9; background: #f8f8f8; }
.checkbox-card.is-success .checkbox-indicator, .checkbox-card.is-failure .checkbox-indicator, .checkbox-card.is-expired .checkbox-indicator { width: 30px; height: 30px; flex-basis: 30px; border: 0; border-radius: 50%; animation: trustturn-success-breathe .9s cubic-bezier(.22,.75,.32,1) 1 both; }
.checkbox-card.is-success .checkbox-indicator { background: var(--trustturn-green); }
.checkbox-card.is-success .checkbox-indicator::after { content: ""; width: 14px; height: 8px; border-left: 3px solid #ffffff; border-bottom: 3px solid #ffffff; transform: rotate(-45deg) translate(1px, -1px); }
.checkbox-card.is-failure .checkbox-indicator { color: #ffffff; background: var(--red); }
.checkbox-card.is-failure .checkbox-indicator:hover { box-shadow: 0 0 0 2px rgba(201, 54, 79, .12); }
.checkbox-card.is-failure .checkbox-indicator::after { content: "!"; font-size: 18px; font-weight: 800; line-height: 1; transform: translateY(-.5px); }
.checkbox-card.is-expired .checkbox-indicator { color: #ffffff; background: var(--trustturn-yellow); cursor: default; }
.checkbox-card.is-expired .checkbox-indicator::after { content: "!"; font-size: 18px; font-weight: 800; line-height: 1; transform: translateY(-.5px); }
.checkbox-card strong, .checkbox-card small { display: block; }
.checkbox-card > span:nth-child(2) { flex: 1; min-width: 0; }
.checkbox-card strong { color: #111111; font-size: 15px; font-weight: 400; }
.checkbox-card small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.checkbox-card .result, .checkbox-card .status { flex: 1 0 100%; margin: 0; }
@keyframes trustturn-dot-fade { 0%, 100% { opacity: .25; } 35% { opacity: 1; } }
@keyframes trustturn-success-orbit { to { transform: rotate(360deg); } }
@keyframes trustturn-orbit-stage-in { from { opacity: .18; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes trustturn-orbit-stage-out { from { opacity: 1; transform: scale(1); } to { opacity: .7; transform: scale(.72); } }
@keyframes trustturn-dots-exit { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.72); } }
@keyframes trustturn-ready-pop { 0% { opacity: .12; transform: scale(.72); } 62% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes trustturn-init-spin { to { transform: rotate(360deg); } }
@keyframes trustturn-widget-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes trustturn-success-breathe { 0% { transform: scale(.72); opacity: .7; } 48% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes trustturn-return-breathe { 0% { transform: scale(.78); } 48% { transform: scale(1.08); } 100% { transform: scale(1); } }
.trustturn-widget-brand { position: absolute; right: 8px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; color: var(--trustturn-orange); user-select: none; pointer-events: none; }
.trustturn-widget-brand svg { display: block; width: 20px; height: 20px; }
.trustturn-widget-brand > span { color: #000000; font-size: 8px; font-weight: 800; letter-spacing: .12em; line-height: 1; }
.trustturn-widget-links { display: flex; align-items: center; gap: 4px; font-size: 8px !important; font-weight: 400 !important; letter-spacing: 0 !important; }
.trustturn-widget-links a { color: #222222; pointer-events: auto; text-decoration: underline; text-underline-offset: 2px; }
.trustturn-widget-links b { color: #222222; font-weight: 400; }
.status, .result { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.5; }
.status:empty { display: none; }
.status.neutral { color: var(--muted); }
.result { overflow-wrap: anywhere; }
.result.hidden { display: none; }
.result.success { color: #067647; border-color: #abefc6; background: #f0fdf4; }
.result.error { color: var(--red); border-color: #fecdca; background: #fff6f6; }
.facts { margin: 20px 0; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { max-width: 180px; margin: 0; overflow: hidden; color: #344054; font-size: 12px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.flow { display: flex; align-items: center; gap: 8px; color: var(--subtle); }
.flow-step { font-size: 10px; letter-spacing: .04em; }
.flow-step.active { color: var(--blue); }
.flow i { width: 18px; height: 1px; background: var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.info-card { padding: 22px; }
.info-card h3 { margin: 0; color: #101828; font-size: 16px; }
.info-card p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
footer { display: flex; justify-content: space-between; padding: 18px 0 26px; color: var(--subtle); font-size: 11px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .workspace { grid-template-columns: 1fr; } .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .topbar { align-items: flex-start; flex-direction: column; gap: 16px; padding: 18px 0; } nav { gap: 15px; } main { padding-top: 40px; } .panel { padding: 18px; } .hero h1 { font-size: 42px; } footer { align-items: flex-start; flex-direction: column; gap: 8px; } }
@media (max-width: 420px) {
  .checkbox-card { padding-right: 76px; }
  .checkbox-card strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .trustturn-widget-brand { right: 6px; }
  .widget-frame, .checkbox-mount, .checkbox-card { max-width: 100vw; }
}
