:root {
  --primary: #123f68;
  --secondary: #1d7c68;
  --accent: #16845b;
  --ink: #102438;
  --muted: #607286;
  --line: #dbe4ea;
  --surface: #ffffff;
  --background: #f2f7f7;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(21, 48, 65, .13);
}
* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: light; }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background-color: var(--background); background-image: radial-gradient(circle at 1px 1px, rgba(18, 63, 104, .08) 1px, transparent 0); background-size: 24px 24px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.page-shell { width: min(100% - 32px, 1080px); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); font-weight: 750; text-decoration: none; }
.identity > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-wrap { position: relative; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; overflow: hidden; color: white; background: linear-gradient(145deg, var(--primary), var(--secondary)); font-weight: 800; box-shadow: 0 8px 24px rgba(18, 63, 104, .18); }
.logo-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.language-toggle { flex: 0 0 auto; display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.85); }
.language-toggle button { min-width: 44px; min-height: 38px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.language-toggle button[aria-pressed="true"] { color: white; background: var(--primary); }
main { flex: 1; display: grid; align-items: center; padding: 20px 0 48px; }
.card { width: min(100%, 720px); margin: auto; border: 1px solid rgba(219,228,234,.9); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.verification-card, .landing-card { position: relative; padding: clamp(28px, 6vw, 56px); text-align: center; overflow: hidden; }
.verification-card::before, .landing-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.security-mark, .state-icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 28px; font-weight: 900; box-shadow: 0 0 0 8px rgba(22,132,91,.1); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .75rem; letter-spacing: .14em; font-weight: 850; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.55rem); letter-spacing: -.035em; line-height: 1.15; }
.subtitle { max-width: 580px; margin: 14px auto 34px; color: var(--muted); line-height: 1.65; }
form { text-align: left; }
fieldset { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
legend, .field-group label { margin-bottom: 11px; color: var(--ink); font-size: .92rem; font-weight: 750; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.segmented label, .channel-grid label { position: relative; cursor: pointer; }
.segmented input, .channel-grid input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label > span, .channel-grid label > span { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #fbfcfd; font-weight: 700; text-align: center; transition: border-color .15s, background .15s, color .15s; }
.segmented input:checked + span, .channel-grid input:checked + span { border-color: var(--primary); color: var(--primary); background: #edf4f7; box-shadow: inset 0 0 0 1px var(--primary); }
.segmented input:focus-visible + span, .channel-grid input:focus-visible + span { outline: 3px solid rgba(29,124,104,.28); outline-offset: 2px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; }
.brand-option { min-height: 86px; display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fbfcfd; cursor: pointer; text-align: left; }
.brand-option:hover { border-color: var(--primary); background: #f4f8fa; }
.brand-option:focus-visible { outline: 3px solid rgba(29,124,104,.28); outline-offset: 2px; }
.brand-option-logo { position: relative; width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--primary), var(--secondary)); font-weight: 850; }
.brand-option-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.brand-option-name { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.brand-option-code { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.channel-icon { font-size: 1.05rem; }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; }
input[type="text"] { width: 100%; min-height: 58px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; outline: none; }
input[type="text"]:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(18,63,104,.11); }
.field-error { min-height: 20px; margin: 7px 0 0; color: var(--danger); font-size: .84rem; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 13px; text-align: center; text-decoration: none; cursor: pointer; font-weight: 800; }
.button-primary { width: 100%; color: white; background: linear-gradient(120deg, var(--primary), var(--secondary)); box-shadow: 0 10px 25px rgba(18,63,104,.18); }
.button-secondary { color: var(--primary); border-color: var(--line); background: white; }
.button:disabled { opacity: .65; cursor: wait; }
.button:focus-visible, a:focus-visible, .modal-close:focus-visible { outline: 3px solid rgba(29,124,104,.35); outline-offset: 3px; }
.button-loader, .spinner { border: 3px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
.button-loader { width: 20px; height: 20px; }
.spinner { width: 46px; height: 46px; margin: 0 auto 24px; color: var(--primary); border-color: var(--line); border-top-color: var(--primary); }
.security-note { margin: 22px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: center; }
.security-note span:first-child { color: var(--accent); }
.state-card { padding: clamp(35px, 8vw, 64px); text-align: center; }
.state-card p { max-width: 520px; margin: 14px auto 0; color: var(--muted); line-height: 1.65; }
.state-card .button { margin-top: 22px; }
footer { padding: 0 0 30px; color: var(--muted); font-size: .8rem; text-align: center; line-height: 1.5; }
footer a { color: var(--primary); font-weight: 750; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,20,32,.68); backdrop-filter: blur(5px); }
.result-panel { --status-color: var(--accent); position: relative; z-index: 1; width: min(100%, 640px); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(28px, 6vw, 48px); border-top: 6px solid var(--status-color); border-radius: 22px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.28); text-align: center; }
.result-panel[data-tone="danger"] { --status-color: #b42318; }
.result-panel[data-tone="critical"] { --status-color: #711313; }
.result-panel[data-tone="warning"] { --status-color: #b36b00; }
.result-panel[data-tone="neutral"] { --status-color: #667085; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 28px; }
.result-symbol { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--status-color); font-size: 30px; font-weight: 900; }
.result-kicker { margin: 0 0 9px; color: var(--status-color); font-size: .76rem; font-weight: 850; letter-spacing: .12em; }
.result-panel h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; }
.result-message { margin: 16px auto 24px; color: var(--muted); line-height: 1.65; white-space: pre-line; }
.result-details { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.3fr); gap: 1px; overflow: hidden; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); text-align: left; }
.result-details dt, .result-details dd { margin: 0; padding: 11px 13px; background: white; overflow-wrap: anywhere; }
.result-details dt { color: var(--muted); font-size: .82rem; font-weight: 750; }
.result-details dd { color: var(--ink); font-size: .9rem; }
.result-actions { display: grid; gap: 10px; }
.result-actions .button { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1080px); }
  .site-header { min-height: 82px; }
  .identity { font-size: .9rem; }
  .logo-wrap { width: 42px; height: 42px; border-radius: 12px; }
  main { padding-top: 8px; }
  .card { border-radius: 20px; }
  .verification-card { padding: 30px 18px; }
  .landing-card { padding: 30px 18px; }
  .brand-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-details { grid-template-columns: 1fr; }
  .result-details dt { padding-bottom: 3px; }
  .result-details dd { padding-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
