/* Proteus website. No external resources: everything is in this folder.
   The palette is the icon's: deep water, open sea, the shallows. */
:root {
  --deep: #0b2559; --sea: #1857c9; --shallow: #22c1c9;
  --bg: #f4f7fb; --panel: #ffffff; --text: #0f1f3d; --muted: #55657f; --line: #dde5f0;
  --accent: #1857c9; --accent-soft: #e6eefb; --accent-text: #ffffff;
  --ok: #128a5a; --ok-soft: #e0f5ec; --bad: #c23838; --bad-soft: #fbe8e8; --na: #73829a; --na-soft: #ebf0f6;
  --code: #edf2f8;
  --gradient: linear-gradient(45deg, var(--deep) 0%, var(--sea) 55%, var(--shallow) 100%);
  --radius: 16px;
  --mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071226; --panel: #0d1c38; --text: #e8eefa; --muted: #93a4c0; --line: #1c2e52;
    --accent: #6fb1ff; --accent-soft: #12264c; --accent-text: #06122a;
    --ok: #4dd69a; --ok-soft: #0d2c2a; --bad: #ff8585; --bad-soft: #34192a; --na: #8496b3; --na-soft: #13233f;
    --code: #0f2040;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.9em var(--mono); background: var(--code); padding: 0.1em 0.4em; border-radius: 6px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
       backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.top nav { margin-left: auto; display: flex; gap: 6px; font-size: 15px; }
.top nav a { color: var(--muted); padding: 7px 13px; border-radius: 999px; }
.top nav a:hover { color: var(--text); text-decoration: none; background: var(--accent-soft); }
.top nav a.here { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.top nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .top nav a.optional { display: none; }
  .top nav { gap: 2px; font-size: 14px; }
  .top nav a { padding: 6px 9px; }
  .top .wrap { gap: 8px; padding: 0 14px; }
  .brand img { height: 28px; }
}

/* Buttons: round, like the strokes of the mark */
.button { display: inline-block; padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line);
          background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
          transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.button:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.button.primary { background: var(--gradient); border-color: transparent; color: #fff;
                  box-shadow: 0 6px 18px -8px var(--sea); }
.button:disabled { opacity: 0.55; cursor: default; transform: none; }

/* Hero: the sea */
.hero { position: relative; overflow: hidden; background: var(--gradient); color: #fff; text-align: center;
        padding: 84px 0 132px; }
.hero .wrap { position: relative; z-index: 1; }
.hero .mark { width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 22px; background: #fff;
              display: grid; place-items: center; box-shadow: 0 18px 40px -18px rgba(3, 12, 36, 0.7); }
.hero .mark svg { width: 62px; height: 62px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.025em; }
.hero p { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255, 255, 255, 0.86); max-width: 690px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .button { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero .button:hover { border-color: #fff; }
.hero .button.primary { background: #fff; color: var(--deep); box-shadow: 0 10px 26px -12px rgba(3, 12, 36, 0.8); }
.status { display: inline-block; margin-top: 28px; padding: 6px 16px; border-radius: 999px; font-size: 14px;
          background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.92); }

section.block { padding: 52px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(24px, 3.4vw, 30px); margin: 0 0 8px; letter-spacing: -0.015em; }
section.block h2::after { content: ""; display: block; width: 46px; height: 5px; border-radius: 999px;
                          background: linear-gradient(90deg, var(--sea), var(--shallow)); margin-top: 12px; }
section.block > .wrap > p.lead { color: var(--muted); max-width: 730px; margin: 16px 0 28px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
        transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.cards .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sea) 45%, var(--line));
                     box-shadow: 0 16px 30px -22px var(--sea); }
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); color: #fff;
              display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 21px; height: 21px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 20px;
                       width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff;
                       font-size: 14px; font-weight: 700; display: grid; place-items: center; }

.two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
ul.plain { margin: 0; padding: 0; list-style: none; color: var(--muted); }
ul.plain li { margin: 0 0 12px; padding-left: 26px; position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 5px;
                      border-radius: 999px; background: linear-gradient(90deg, var(--sea), var(--shallow)); }
ul.plain strong { color: var(--text); }
pre { margin: 0; padding: 18px; background: var(--deep); color: #dce8ff; border-radius: var(--radius); overflow-x: auto;
      font: 13.5px/1.6 var(--mono); }
.feature { background: var(--gradient); color: #fff; border: 0; }
.feature h3 { font-size: 18px; }
.feature p { color: rgba(255, 255, 255, 0.86); }
.feature .button { background: #fff; color: var(--deep); border-color: transparent; }

footer { background: var(--deep); color: rgba(255, 255, 255, 0.72); padding: 30px 0 38px; font-size: 14px; margin-top: 30px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: #fff; }
footer img { height: 26px; width: auto; display: block; }

/* Test page */
.page-head { background: var(--gradient); color: #fff; padding: 46px 0 52px; }
.page-head h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 10px; letter-spacing: -0.02em; }
.page-head p { color: rgba(255, 255, 255, 0.86); max-width: 740px; margin: 0; }

.summary { display: grid; gap: 16px; grid-template-columns: minmax(230px, 300px) 1fr; margin: -26px 0 16px; position: relative; }
@media (max-width: 720px) { .summary { grid-template-columns: 1fr; } }
.score, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
                 box-shadow: 0 18px 34px -28px var(--deep); }
.score { padding: 24px; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; }
.score .ring { --value: 0; --color: var(--na); width: 140px; height: 140px; border-radius: 50%;
               background: conic-gradient(var(--color) calc(var(--value) * 1%), var(--na-soft) 0);
               display: grid; place-items: center; }
.score .ring > div { width: 110px; height: 110px; border-radius: 50%; background: var(--panel);
                     display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.score .verdict { font-weight: 700; margin-top: 6px; }
.score .note { color: var(--muted); font-size: 14px; }

.panel { padding: 20px; }
.panel h2 { font-size: 16px; margin: 0 0 10px; }
.facts { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.facts td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.facts tr:last-child td { border-bottom: 0; }
.facts td:first-child { color: var(--muted); width: 34%; padding-right: 12px; }

.hashes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 12px; }
.hash { background: var(--deep); color: #fff; border-radius: 12px; padding: 12px 14px; }
.hash span { display: block; color: rgba(255, 255, 255, 0.66); font-size: 13px; }
.hash b { font: 600 18px var(--mono); letter-spacing: 0.05em; color: #9fe8ec; }

.group { margin: 26px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
         color: var(--accent); display: flex; align-items: center; gap: 10px; }
.group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start;
         background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; margin: 8px 0; }
.check .dot { width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; display: grid; place-items: center;
              font-size: 13px; font-weight: 700; background: var(--na-soft); color: var(--na); }
.check h3 { margin: 0; font-size: 15.5px; }
.check p { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
.check .tag { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
              background: var(--na-soft); color: var(--na); white-space: nowrap; }
.check.pass .dot, .check.pass .tag { background: var(--ok-soft); color: var(--ok); }
.check.fail .dot, .check.fail .tag { background: var(--bad-soft); color: var(--bad); }
.check.fail { border-color: var(--bad); }
@media (max-width: 520px) { .check { grid-template-columns: 28px 1fr; } .check .tag { grid-column: 2; justify-self: start; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0 4px; }
.toolbar .muted { color: var(--muted); font-size: 14px; }
.callout { background: var(--accent-soft); border-left: 5px solid var(--sea); border-radius: 12px; padding: 16px 18px;
           font-size: 15px; margin: 26px 0; }
.callout strong { color: var(--accent); }
#probe { position: fixed; left: 10.25px; top: 20.5px; width: 100.5px; height: 40.25px; visibility: hidden; pointer-events: none; }
