/* Strata public portal.
   No framework, no web fonts, no third-party anything: the CSP forbids it and
   a page that accepts uploads from strangers has no business loading remote
   code. Dark by default to match the host sites, light where the reader
   asks for it. */

:root {
  --bg: #0b1017;
  --panel: #121a24;
  --panel-2: #18222f;
  --line: #23303f;
  --ink: #e8eef6;
  --ink-dim: #9fb0c4;
  --accent: #38bdf8;
  --accent-ink: #04121c;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 10px;
  --max: 760px;
  --wash: rgba(56, 189, 248, .13);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-2: #eef3f9;
    --line: #d7e1ec;
    --ink: #10202f;
    --ink-dim: #4d6379;
    --accent: #0369a1;
    --accent-ink: #ffffff;
    --wash: rgba(3, 105, 161, .10);
  }
}

* { box-sizing: border-box; }

/* ------------------------------------------------------------------- brand
   One page, two sites. site.js sets data-site="cyberai" on <html> before first
   paint; until then the shieldguardia.com wording is what shows. Display values
   are written out per element type rather than using `revert`, so the fallback
   never depends on how old the browser is. */
[data-brand="cyberai"] { display: none; }
html[data-site="cyberai"] [data-brand="shieldguardia"] { display: none; }
html[data-site="cyberai"] span[data-brand="cyberai"] { display: inline; }
html[data-site="cyberai"] p[data-brand="cyberai"] { display: block; }
/* the contact CTA is an anchor, so it needs its own display value */
html[data-site="cyberai"] a[data-brand="cyberai"] { display: inline-flex; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* ------------------------------------------------------------------ chrome */
.bar {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand b { font-weight: 700; }
.mark {
  width: 18px; height: 22px; flex: none;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 22%, 100% 62%, 50% 100%, 0 62%, 0 22%);
}
.tag {
  margin-left: auto;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .7rem;
}

main { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.2; margin: .5rem 0 .75rem; }
.lede { color: var(--ink-dim); font-size: 1.05rem; margin: 0 0 2rem; }

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin: 0 0 1.25rem; }
.step {
  display: inline-grid; place-items: center;
  width: 1.6rem; height: 1.6rem; flex: none;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: .85rem; font-weight: 700;
}

label { display: block; font-weight: 600; margin: 1rem 0 .4rem; }
label:first-of-type { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-dim); font-size: .85rem; }

input[type=email], textarea {
  width: 100%;
  padding: .7rem .8rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}
input[type=email]:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 6rem; }

.help { color: var(--ink-dim); font-size: .85rem; margin: .45rem 0 0; }

button.primary {
  margin-top: 1.25rem;
  padding: .75rem 1.3rem;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 8px;
  font: inherit; font-weight: 650;
  cursor: pointer;
}
button.primary:hover:not(:disabled) { filter: brightness(1.1); }
button.primary:disabled { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------- file drop */
.drop {
  display: block; position: relative;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  background: var(--panel-2);
  padding: 2rem 1rem; text-align: center;
  cursor: pointer; margin: 0;
}
.drop.over { border-color: var(--accent); background: var(--panel); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-inner strong { display: block; color: var(--accent); margin-bottom: .3rem; }
.drop-inner small { color: var(--ink-dim); display: block; font-size: .8rem; }

.filelist { list-style: none; margin: 1rem 0 0; padding: 0; }
.filelist li {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; margin-bottom: .4rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
  font-size: .9rem;
}
.filelist .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist .size { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.filelist .rm {
  background: none; border: 0; color: var(--ink-dim);
  font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 .2rem;
}
.filelist .rm:hover { color: var(--bad); }
.filelist li.bad { border-color: var(--bad); }
.filelist li.bad .why { color: var(--bad); font-size: .8rem; }

.progress { height: 6px; background: var(--panel-2); border-radius: 999px; margin-top: 1rem; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }

/* ------------------------------------------------------------------ notice */
.notice {
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: .95rem;
}
.notice.bad  { border-color: var(--bad);  color: var(--bad); }
.notice.ok   { border-color: var(--ok);   color: var(--ok); }
.notice.warn { border-color: var(--warn); color: var(--warn); }

/* ------------------------------------------------------------------- facts */
.facts { margin-top: 2.5rem; }
.facts h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.facts dl { margin: 0; display: grid; gap: .9rem; }
.facts dt { font-weight: 650; font-size: .92rem; }
.facts dd { margin: .15rem 0 0; color: var(--ink-dim); font-size: .92rem; }

/* ------------------------------------------------------------------ beyond
   Everything above this is the free run. This is the one place on the page that
   asks the reader for anything, so it gets a panel of its own rather than a
   line of small print at the bottom. */
.beyond {
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.beyond::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
/* Sits behind the text and takes no clicks: decoration only. */
.beyond::after {
  content: '';
  position: absolute; top: -150px; right: -90px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--wash), transparent 70%);
  pointer-events: none;
}
.beyond > * { position: relative; }

.beyond h2 { font-size: 1.15rem; margin: 0 0 .45rem; }
.beyond-lede { color: var(--ink-dim); font-size: .92rem; margin: 0 0 1.25rem; }

.beyond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.4rem; }
.beyond-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.05rem;
}
.beyond-card h3 {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; margin: 0 0 .45rem;
}
.beyond-card h3 svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.beyond-card p { margin: 0; color: var(--ink-dim); font-size: .87rem; line-height: 1.55; }

.beyond-cta {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .72rem 1.2rem;
  border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 650; font-size: .95rem;
  transition: filter .15s ease;
}
.beyond-cta:hover { filter: brightness(1.1); }
.beyond-cta svg { width: 17px; height: 17px; flex: none; }
.beyond-note { margin: .75rem 0 0; color: var(--ink-dim); font-size: .82rem; }

code {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 5px; padding: .1rem .4rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em;
  word-break: break-all;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  text-align: center; color: var(--ink-dim); font-size: .85rem;
}
footer a { color: var(--accent); }

@media (max-width: 560px) {
  .beyond-grid { grid-template-columns: 1fr; }
  .beyond-cta { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .card { padding: 1.15rem; }
  main { padding: 1.5rem 1rem 3rem; }
  .beyond { padding: 1.3rem 1.15rem 1.25rem; }
}
