/* Portal Hound site. Same tokens as the apps (apps/src/Shared/Wpf/Theme.xaml). */
:root {
  --bg: #071321;
  --nav: #091928;
  --card: #102334;
  --elevated: #163044;
  --line: #243C4D;
  --teal: #20CFD5;
  --teal-hover: #51E0E3;
  --on-teal: #04131F;
  --text: #F1F5F8;
  --text2: #A8BBC9;
  --muted: #8198AA;
  --success: #40C99A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--text2); }
.muted { color: var(--text2); }
.eyebrow { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600;
  background: var(--teal); color: var(--on-teal); border: 1px solid var(--teal);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--on-teal); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--elevated); color: var(--text); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 19, 33, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a:not(.btn) { color: var(--text2); font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.top .btn { min-height: 40px; padding: 0 16px; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .logo { width: min(340px, 72vw); margin: 0 auto 12px; }
.hero h1 { max-width: 820px; margin: 0 auto; }
.hero .lead { max-width: 680px; margin: 20px auto 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.shots { position: relative; margin: 56px auto 0; max-width: 1040px; }
.shots .admin { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.shots .worker { position: absolute; right: -12px; bottom: -36px; width: 26%; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
@media (max-width: 700px) { .shots .worker { display: none; } }

/* Sections */
section.band { padding: 96px 0; }
section.band.alt { background: var(--nav); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 40px; }
.head .lead { margin-top: 14px; }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text2); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(32, 207, 213, .12);
  display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; stroke: var(--teal); fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; }
.steps .card::before { counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--teal); color: var(--teal); font-weight: 600; margin-bottom: 16px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(-45deg); }

.who { display: flex; flex-wrap: wrap; gap: 10px; }
.who span { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; color: var(--text2); }

.cta { text-align: center; }
.cta .lead { max-width: 620px; margin: 16px auto 28px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--text2); }

/* Customer download pages (rendered by the Worker) */
body.dl main { padding: 40px 16px 64px; }
body.dl .brand { margin-bottom: 40px; }
body.dl h1 { font-size: clamp(28px, 4vw, 38px); }
body.dl .lead { margin: 14px 0 8px; font-size: 17px; }
body.dl section { margin-top: 36px; }
body.dl h2 { font-size: 20px; margin-bottom: 6px; }
body.dl section > .muted { margin-bottom: 16px; font-size: 15px; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  margin-bottom: 10px; color: var(--text); }
.file:hover { border-color: var(--teal); text-decoration: none; color: var(--text); }
.file small { display: block; color: var(--muted); font-size: 13px; }
.file .btn { min-height: 38px; padding: 0 14px; flex: none; }
.fine { margin-top: 48px; color: var(--muted); font-size: 14px; }
