/* software.incustech.app: the incustech.co.uk design language (DM Sans / Playfair Display / Montserrat,
   navy hero with a constellation, blue accents, Playfair headlines, thin rules) */
/* fonts: /fonts/fonts.css is linked from each page (an @import here would load it only after this file) */

:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --ink: #0f1623;
  --ink-2: #1a1f2e;
  --navy-glow: #1c2545;
  --slate: #4b5573;
  --line: #e2e5f0;
  --paper: #f7f8fc;
  --white: #ffffff;
  --green: #22c55e;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Montserrat", "DM Sans", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background 350ms ease, box-shadow 350ms ease;
}
.nav.scrolled { background: rgba(15, 22, 35, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { display: flex; align-items: stretch; gap: 12px; color: var(--white); }
.logo .bar { width: 4px; border-radius: 2px; background: var(--blue); }
.logo .word { font-family: var(--brand); font-weight: 900; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.logo .sub {
  font-family: var(--sans); font-weight: 300; font-size: 9px; letter-spacing: 0.38em;
  text-transform: uppercase; line-height: 1; margin-top: 4px; color: rgba(255, 255, 255, 0.4);
}
.logo .tag {
  align-self: center; margin-left: 4px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.15);
  font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, 0.75); letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 14px; color: rgba(255, 255, 255, 0.75); padding: 4px 0; transition: color 200ms ease; }
.nav-links a:hover { color: var(--white); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 4px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer;
  border: 1.5px solid transparent; transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline-dark { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }
.btn small { font-weight: 400; opacity: 0.75; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: min(100vh, 960px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink) 0%, var(--navy-glow) 100%); color: var(--white); overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the text block takes the free height and centres itself; the stats strip then sits at the bottom */
.hero .wrap { position: relative; z-index: 1; width: 100%; flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding-top: 120px; padding-bottom: 96px; }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 1px; background: var(--blue); flex-shrink: 0; }
.eyebrow.on-light { color: var(--blue); font-weight: 600; letter-spacing: 0.14em; }
.display {
  font-family: var(--serif); font-weight: 800; font-size: clamp(48px, 7.5vw, 96px);
  line-height: 1.05; color: var(--white); margin-bottom: 28px; max-width: 14ch;
}
.display em, .h2 em { font-style: normal; color: var(--blue); }
.lead { font-weight: 300; font-size: 16px; line-height: 1.85; color: rgba(255, 255, 255, 0.6); max-width: 560px; margin-bottom: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* stats strip along the bottom of the hero */
.stats {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(15, 22, 35, 0.35);
}
.stat { padding: 26px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--white); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

/* ---------------------------------------------------------------- sections */
section.block { padding: clamp(72px, 10vw, 120px) 0; }
section.block.paper { background: var(--paper); }
section.block.dark { background: var(--ink); color: rgba(255, 255, 255, 0.6); }
.h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; color: var(--ink); margin-bottom: 20px; max-width: 18ch; }
.dark .h2 { color: var(--white); }
.intro { max-width: 640px; margin-bottom: 56px; }
.dark .intro p { font-weight: 300; }
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.split > * { flex: 1 1 320px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px;
  transition: box-shadow 250ms ease, transform 250ms ease, border-color 250ms ease;
}
.card:hover { box-shadow: 0 12px 32px rgba(15, 22, 35, 0.08); transform: translateY(-2px); border-color: #d3d8ea; }
.card h3 { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.card p { font-size: 14px; line-height: 1.7; }
.card .metric { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--ink); line-height: 1; margin-bottom: 14px; }
.card .metric small { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--slate); letter-spacing: 0.04em; margin-left: 6px; }
.card .pill {
  display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; background: #eef3ff; color: var(--blue);
}
.card .pill.green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 500; font-size: 13px; color: var(--blue); }

.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-left: 22px; border-left: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--blue); line-height: 1; margin-bottom: 14px;
}
.step h3 { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14px; line-height: 1.7; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.list li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.dark .list li { border-color: rgba(255,255,255,0.08); }
.list b { color: var(--ink); font-weight: 600; }
.dark .list b { color: var(--white); }

table.chips { width: 100%; border-collapse: collapse; font-size: 14px; }
table.chips th, table.chips td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.chips th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
table.chips td:first-child { white-space: nowrap; font-weight: 600; }
.ok { color: #16a34a; } .warn { color: #b45309; } .no { color: #b91c1c; }
table.compare td:first-child { white-space: normal; }
table.compare td:nth-child(2) { color: var(--slate); }
table.compare td.ok { font-weight: 600; }

.download-panel {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
  padding: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03);
}
.download-panel .meta { font-size: 13px; line-height: 1.9; }
.download-panel code {
  font-size: 11.5px; word-break: break-all; color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 3px;
}
.notice {
  margin-top: 28px; padding: 18px 20px; border-radius: 6px; font-size: 14px; line-height: 1.7;
  background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.35); color: rgba(255, 255, 255, 0.75);
}

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; transition: transform 200ms ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; font-size: 15px; }

/* ---------------------------------------------------------------- report-a-bug form */
section.block.page-top { padding-top: calc(78px + clamp(48px, 7vw, 88px)); }
.aside { margin-top: 18px; font-size: 14px; line-height: 1.7; padding-left: 16px; border-left: 2px solid var(--line); }
.aside b { color: var(--ink); font-weight: 600; }
form.report { display: flex; flex-direction: column; }
form.report label { font-weight: 600; font-size: 14px; color: var(--ink); margin: 18px 0 6px; }
form.report label:first-child { margin-top: 0; }
form.report label span { font-weight: 400; color: var(--slate); }
form.report input, form.report textarea {
  width: 100%; font: inherit; font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; transition: border-color 200ms ease, box-shadow 200ms ease;
}
form.report textarea { resize: vertical; min-height: 160px; }
form.report input:focus, form.report textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
form.report .btn { align-self: flex-start; margin-top: 24px; cursor: pointer; }
form.report .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
form.report .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1.7em; }
.form-status.good { color: #16a34a; } .form-status.bad { color: #b91c1c; }

/* ---------------------------------------------------------------- footer */
footer { background: var(--ink); color: rgba(255, 255, 255, 0.5); padding: 56px 0 40px; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer nav a { color: rgba(255, 255, 255, 0.6); transition: color 200ms ease; }
footer nav a:hover { color: var(--white); }
footer .legal { flex-basis: 100%; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; line-height: 1.7; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
}
@media (max-width: 860px) {
  .logo .tag { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .download-panel { padding: 24px; }
  table.chips td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
