:root {
  --red: #ff202c;
  --navy: #11182f;
  --muted: #66728f;
  --border: #dbe4f0;
  --bg: #f7fbff;
  --card: #ffffff;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 Arial, sans-serif; color: var(--navy); background: var(--bg); }
[hidden] { display: none !important; }
a { color: #0655ff; }
button, input, select, .button { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .6; cursor: wait; }
.primary { color: white; background: var(--red); }
.secondary { color: var(--muted); background: #f1f5fb; border: 1px solid var(--border); }
:focus-visible { outline: 3px solid #0655ff; outline-offset: 3px; }
.header { min-height: 72px; padding: 10px 4%; display: flex; justify-content: space-between; align-items: center; gap: 20px; background: white; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 22px; text-decoration: none; color: var(--navy); }
.header nav { display: flex; gap: 12px; }
.icon { width: 22px; height: 22px; vertical-align: middle; flex-shrink: 0; }
.hero { text-align: center; padding: 36px 4% 24px; background: white url('/static/img/hero-background.svg') center top / cover no-repeat; }
h1 { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; text-transform: uppercase; margin: 18px 0 12px; }
h2 { font-size: 28px; line-height: 1.25; }
.hero p, .muted { color: var(--muted); }
#analyze-form { display: flex; gap: 10px; max-width: 960px; margin: 20px auto 0; }
.input-wrap { display: flex; align-items: center; gap: 14px; background: white; border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; flex: 1; min-width: 0; }
input { width: 100%; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: var(--navy); }
input::placeholder { color: var(--muted); }
.container { width: 92%; max-width: 1340px; margin: 24px auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filters { display: flex; gap: 12px; margin-bottom: 20px; }
select { padding: 12px 40px 12px 16px; border: 1px solid var(--border); border-radius: 10px; color: var(--navy); appearance: none; background: white url('/static/img/icon-chevron-down.svg') right 14px center / 16px no-repeat; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 14px 22px; border-bottom: 1px solid #eef3fa; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.external { width: 17px; margin-left: 8px; filter: invert(25%) sepia(100%) saturate(5000%) hue-rotate(220deg); }
.score-star { filter: brightness(0) saturate(100%) invert(79%) sepia(100%) saturate(1600%) hue-rotate(359deg); }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 22px 0; }
.pagination button { padding: 10px 16px; border-color: var(--border); background: white; color: var(--navy); }
.pagination [aria-current="page"] { color: white; background: var(--red); border-color: var(--red); }
.card { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
dl { display: grid; grid-template-columns: 1fr auto; max-width: 560px; gap: 8px; }
dd { margin: 0; }
dialog { width: min(560px, calc(100% - 32px)); padding: 36px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--navy); text-align: center; }
#login-modal { color-scheme: only light; color: #000; background: linear-gradient(135deg, #eaf3ff 0%, #f7fbff 48%, #b9d5f4 100%); border-color: #a6c8f0; box-shadow: 0 24px 64px rgba(17, 24, 47, .2); }
#login-modal p, #login-modal label, #login-modal a, #login-modal .muted { color: #000; }
#login-modal button, #login-modal .button { color: #000; background: #e7f2ff; border-color: #a6c8f0; }
#login-modal button:hover, #login-modal .button:hover { background: #c9e2fa; }
#login-modal #logout, #login-modal #pat-form button[type="submit"] { color: #fff; background: var(--red); border-color: var(--red); }
#login-modal input { color: #000; background: #fff; border: 1px solid #a6c8f0; border-radius: 10px; padding: 12px 14px; margin: 8px 0 12px; }
#login-modal input::placeholder { color: #000; opacity: .65; }
#pat-form { display: flex; flex-direction: column; gap: 12px; }
#login-modal #pat-form input { display: block; margin-bottom: 0; }
#pat-form button { align-self: center; }
#create-pat-link { display: block; width: fit-content; margin: 12px auto 0; }
dialog::backdrop { background: rgba(17,24,47,0.35); backdrop-filter: blur(8px); }
.close { float: right; padding: 2px 10px; font-size: 24px; }
#login-modal .close { margin-bottom: 20px; }
dialog h2 { clear: both; text-transform: uppercase; }
hr { border: 0; border-top: 1px solid var(--border); }
.methodology { max-width: 860px; padding: 0 20px 48px; margin: 30px auto; overflow-wrap: anywhere; }
.methodology p { color: var(--muted); }
.methodology img { display: block; width: 100%; height: auto; }
.methodology table { margin: 24px 0; }
.methodology td, .methodology th { white-space: normal; padding: 10px; }
.methodology em { font-size: 14px; }
.accent { color: var(--red); }
.reveal, #analysis-result:not([hidden]) { animation: appear .35s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 760px) { .header, .section-heading { flex-wrap: wrap; } .filters { flex-wrap: wrap; } .filters .input-wrap { flex-basis: 100%; } select { flex: 1; min-width: 0; } #analyze-form { flex-wrap: wrap; } #analyze-form .input-wrap { flex-basis: 100%; } .brand { font-size: 18px; } .header nav { flex-wrap: wrap; } h2 { font-size: 24px; } th, td { padding: 12px; } }
