/* SnipHawk marketing site — sniphawk.com
   Tokens from public/brand/COLOURS.md (approved v1.0). Flat fills only:
   no gradients, no shadows, no blurs. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #171a1c;
  --surface: #202427;
  --text: #f4f5f3;
  --muted: #a7afb3;
  --primary: #e58a61;
  --primary-deep: #bc542f;
  --on-primary: #171a1c;
  --hover: #f0a47d;
  --line: rgba(125, 133, 138, 0.22);
  --line-strong: rgba(125, 133, 138, 0.42);
  --measure: 36rem;
  --wrap: 1120px;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: #3a2b24;
  color: var(--primary);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

/* ---------- layout ---------- */

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- type ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

p {
  margin: 0 0 18px;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}

.strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--primary);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--hover);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.header-inner > .btn {
  flex: none;
}

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 0;
  text-align: center;
}

.hero-text {
  max-width: 880px;
  margin-inline: auto;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lede {
  max-width: 33rem;
  margin-inline: auto;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-visual {
  margin-top: 58px;
}

.hero-visual .frame {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.hero-visual img {
  width: 100%;
}

.hero-visual figcaption {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
}

/* ---------- screenshots ---------- */

.shot {
  margin: 0;
}

.shot > img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.shot figcaption {
  margin-top: 16px;
  max-width: 46rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- definition list ---------- */

.defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 44px;
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.defs dt {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.defs dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

.prose-block p {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.step-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- shortlist ---------- */

.shortlist {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.sl-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sl-rank {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--muted);
  padding-top: 1px;
}

.sl-time {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.sl-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.sl-why {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.badge-strong {
  border-color: rgba(229, 138, 97, 0.5);
  background: rgba(188, 84, 47, 0.16);
  color: var(--primary);
}

/* ---------- feature split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.feature-list.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 44px;
}

.feature-list li {
  padding-left: 0;
}

.feature-list strong {
  display: block;
  font-size: 0.97rem;
  margin-bottom: 3px;
}

.feature-list span {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- comparison table ---------- */

.table-wrap {
  margin-top: 38px;
  overflow-x: auto;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 560px;
}

table.compare th {
  text-align: left;
  padding: 0 16px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

table.compare td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.55;
}

table.compare td:first-child {
  color: var(--muted);
  width: 30%;
}

table.compare td.us {
  color: var(--text);
  font-weight: 600;
}

table.compare th.us {
  color: var(--primary);
}

/* ---------- callout / cta ---------- */

.callout {
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 20px;
  margin: 32px 0;
}

.callout p {
  font-size: 1.05rem;
  color: var(--text);
}

.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
  margin: 96px 0;
}

.cta-band h2 {
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 28px;
}

/* ---------- page head + prose ---------- */

.page-head {
  padding: 76px 0 8px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin-bottom: 20px;
}

.prose {
  max-width: 35rem;
  padding: 8px 0 96px;
}

.wide {
  max-width: 100%;
  padding: 8px 0 8px;
}

.wide h2 {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 44px 0 12px;
  letter-spacing: -0.015em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1rem;
  margin: 26px 0 8px;
}

.prose p,
.prose li {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--text);
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose .updated {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 34px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand img {
  height: 24px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  transition: color 120ms ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}

/* ---------- utilities ---------- */

.mt-18 {
  margin-top: 18px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-34 {
  margin-bottom: 34px;
}

.email-line {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ---------- misc ---------- */

.not-found {
  padding: 130px 0 140px;
  max-width: 560px;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 18px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 30px;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 14px 0 10px;
  }

  .brand img {
    height: 24px;
  }

  .header-inner > .btn {
    padding: 9px 15px;
    font-size: 0.8rem;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav a {
    padding: 6px 0;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .header-inner > .btn {
    margin-left: auto;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .hero-visual .frame {
    border-radius: 14px;
  }

  .hero-visual figcaption {
    text-align: left;
  }

  .section {
    padding: 64px 0;
  }

  .grid-3,
  .grid-2,
  .steps,
  .defs,
  .feature-list.two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .defs {
    gap: 18px;
    padding-top: 24px;
  }

  .feature-list.two-col {
    gap: 22px;
  }

  .steps {
    gap: 24px;
  }

  .sl-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 18px;
  }

  .sl-row .badge {
    grid-column: 2;
    justify-self: start;
  }

  .cta-band {
    padding: 40px 24px;
    margin: 64px 0;
  }

  .page-head {
    padding-top: 48px;
  }

  .prose {
    padding-bottom: 64px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-base {
    flex-direction: column;
    gap: 6px;
  }
}
