/* QHuman website — shared stylesheet. Hand-written, no build step. */

:root {
  --bg:          #0f1217;
  --bg-elev:     #161a21;
  --bg-card:     #171c24;
  --bg-card-hi:  #1c2230;
  --border:      #262d38;
  --border-hi:   #364150;
  --text:        #e7eaee;
  --text-muted:  #9aa4b2;
  --text-dim:    #6b7585;
  --brand:       #4e98c6;   /* QHuman blue  */
  --brand-bright:#74b4dd;
  --brand-deep:  #3a7ba6;
  --slate:       #494f56;   /* QHuman slate */
  --ink:         #06121b;   /* dark text for use on brand fills */
  --ok:          #5bbf8a;
  --radius:      14px;
  --radius-sm:   9px;
  --maxw:        1080px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: var(--brand-bright); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 18, 23, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}
.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 6px 2px;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.93rem; }
.btn-primary {
  background: var(--brand);
  color: var(--ink);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  color: var(--ink);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hi);
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-dim);
  color: var(--text);
}
.btn:active { transform: translateY(1px); }

/* ---- sections ---- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 1.06rem; }

/* ---- hero ---- */
.hero {
  position: relative;
  padding: 92px 0 88px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(620px 320px at 50% -40px, rgba(78, 152, 198, 0.22), transparent 70%),
    radial-gradient(440px 260px at 86% 8%, rgba(73, 79, 86, 0.30), transparent 72%);
}
.hero h1 { max-width: 16ch; margin: 0 auto 20px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-bright), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 56ch;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.16rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---- feature grid ---- */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(78, 152, 198, 0.12);
  border: 1px solid rgba(78, 152, 198, 0.28);
  color: var(--brand-bright);
  margin-bottom: 16px;
}
.feature .feature-icon svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: 7px; }
.feature p { color: var(--text-muted); font-size: 0.98rem; }
.feature {
  transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}
.feature:hover {
  border-color: var(--border-hi);
  background: var(--bg-card-hi);
  transform: translateY(-3px);
}

/* ---- audience ---- */
.audience { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.audience .grid { gap: 18px; }
.audience .card h3 { margin-bottom: 8px; }
.audience .card p { color: var(--text-muted); font-size: 0.98rem; }
.audience .tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

/* ---- band / CTA ---- */
.band {
  text-align: center;
  background:
    radial-gradient(540px 240px at 50% 0, rgba(78, 152, 198, 0.16), transparent 70%),
    var(--bg);
}
.band h2 { max-width: 22ch; margin: 0 auto 14px; }
.band p { max-width: 50ch; margin: 0 auto 28px; color: var(--text-muted); }

/* ---- download / store ---- */
.download-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}
.download-inner h2 { margin-bottom: 12px; }
.download-inner p { color: var(--text-muted); max-width: 48ch; margin: 0 auto 26px; }

/* ---- support ---- */
.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}
.support-grid .card { text-align: center; }
.support-grid h3 { margin-bottom: 6px; }
.support-grid p { color: var(--text-muted); font-size: 0.96rem; }
.support-grid .card a { font-weight: 600; }

/* ---- pricing ---- */
.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
  align-items: start;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.plan--featured {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 1px var(--brand-deep), 0 16px 40px -20px rgba(78, 152, 198, 0.5);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-name { font-size: 1.05rem; font-weight: 700; }
.plan-price {
  margin: 14px 0 4px;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--text-dim); }
.plan-tagline { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 26px; }
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--text);
  font-size: 0.97rem;
}
.plan li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--brand-bright); }
.plan .btn { width: 100%; }

/* ---- comparison table ---- */
.compare-wrap { max-width: 760px; margin: 0 auto; overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
table.compare thead th {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
table.compare td:not(:first-child), table.compare th:not(:first-child) {
  text-align: center;
  width: 22%;
}
table.compare tbody th { font-weight: 600; color: var(--text); }
table.compare .yes { color: var(--brand-bright); font-weight: 700; }
table.compare .no { color: var(--text-dim); }

/* ---- steps ---- */
.steps { max-width: 640px; margin: 30px auto 0; counter-reset: step; }
.steps li {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(78, 152, 198, 0.14);
  border: 1px solid rgba(78, 152, 198, 0.32);
  color: var(--brand-bright);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li div strong { display: block; }
.steps li div span { color: var(--text-muted); font-size: 0.96rem; }

/* ---- page hero (subpages) ---- */
.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(520px 220px at 50% -30px, rgba(78, 152, 198, 0.16), transparent 70%);
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 56ch; margin: 0 auto; }

/* success / subscribed */
.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(91, 191, 138, 0.13);
  border: 1px solid rgba(91, 191, 138, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ok);
}
.success-mark svg { width: 38px; height: 38px; }

/* ---- prose (legal pages) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: 1.32rem;
  margin: 38px 0 12px;
  padding-top: 6px;
}
.prose h2:first-of-type { margin-top: 8px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--text-muted); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--text); }
.prose .meta { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 6px; }
.prose .note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.prose .note p:last-child { margin-bottom: 0; }

/* ---- 404 ---- */
.notfound {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.notfound .code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--brand-bright), var(--slate));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.notfound p { color: var(--text-muted); margin: 12px 0 26px; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 52px 0 30px;
  margin-top: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 34ch; }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
}
.social a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
.social a:hover { color: var(--brand-bright); }
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.96rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.footer-bottom address { font-style: normal; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 60px; }
  .grid, .support-grid, .plans { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: 6px 16px; }
  .download-inner { padding: 34px 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .plan-badge { left: 50%; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .feature:hover { transform: none; }
}
