/* Layout: a 1180px editorial column; navy bands (hero, call to action, footer) frame cool light-grey
   content; demo screens, with names and places blurred, are the imagery; terrain contours are the one ornament. */
:root {
  --night: #12161c;
  --navy: #1e232b;
  --steel: #2b323d;
  --orange: #ff8a00;
  --orange-ink: #a85000;
  --ground: #f2f4f6;
  --surface: #ffffff;
  --line: #d9dee4;
  --ink: #161b22;
  --muted: #545d69;
  --on-dark: #e9edf2;
  --on-dark-muted: #a6b0bd;
  --error: #b42318;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --radius: 6px;
  --gutter: max(16px, 4vw);
  color-scheme: light;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 14px; }

.eyebrow, .label {
  font: 600 0.75rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.prose { max-width: 42em; display: flex; flex-direction: column; gap: 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1em; }

/* Buttons: hi-vis orange with night text, the only action colour. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--night);
  font: 700 1rem/1 var(--display);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #ffa033; border-color: #ffa033; color: var(--night); }
.button-ghost { background: transparent; color: inherit; border-color: currentColor; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--orange); color: inherit; }
.button-small { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header: white, sticky; on phones the links become a scrolling row under the logo. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 28px;
  min-height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark { font: 700 1.45rem/1 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.wordmark span { color: var(--orange); }
.wordmark-dark { color: var(--on-dark); }
.site-nav { display: flex; gap: 4px; justify-self: end; }
.site-nav a {
  padding: 10px 12px;
  color: var(--ink);
  font: 600 0.95rem/1 var(--display);
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--ground); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }

@media (max-width: 820px) {
  .header-row { grid-template-columns: 1fr auto; padding-top: 10px; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .site-nav a { white-space: nowrap; padding-inline: 10px; }
  .site-nav a:first-child { padding-left: 0; }
  .wordmark { font-size: 1.3rem; }
  .brand img { width: 38px; height: auto; }
}

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding-block: 56px 28px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .button { color: var(--night); margin-top: 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 36px; }
.footer-about { display: flex; flex-direction: column; gap: 10px; max-width: 22em; }
.footer-heading { font: 600 0.75rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--steel);
  font-size: 0.9rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .button, .site-nav a { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
}

/* Sections shared by every page. */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-white { background: var(--surface); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }

/* Dark bands: the hero, page heads and the call to action, over a site's terrain contours. */
.dark { background: var(--night); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #ffffff; }
.dark .lede { color: var(--on-dark-muted); }
.dark .eyebrow { color: var(--orange); }
.contours {
  background:
    linear-gradient(90deg, var(--night) 0%, rgba(18, 22, 28, 0.94) 34%, rgba(18, 22, 28, 0.55) 70%, rgba(18, 22, 28, 0.3) 100%),
    url("../assets/contours.svg") right center / cover no-repeat,
    var(--night);
}

.hero { padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 2.4vw, 3.3rem); }
.hero-visual { position: relative; padding-bottom: 48px; }
.hero-visual .screen-tablet { position: absolute; width: 44%; left: -6%; bottom: -8px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { margin-left: 8%; }
  .hero-visual .screen-tablet { left: -10%; width: 46%; }
}

.page-head { padding-block: clamp(48px, 7vw, 80px); }
.page-head .wrap { display: flex; flex-direction: column; gap: 18px; }

/* Screens: the portal in a slim browser frame, the tablet in its bezel. */
.screen { margin: 0; }
.screen-browser {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -28px rgba(10, 14, 20, 0.55);
}
.dark .screen-browser { border-color: #39414d; }
.screen-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-inline: 12px;
  background: #e7eaee;
  color: #4a525d;
  font: 500 0.72rem/1 var(--mono);
  white-space: nowrap;
  overflow: hidden;
}
.screen-bar::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 14px 0 0 #c3cad3, 28px 0 0 #c3cad3;
  flex: none;
}
.screen-tablet {
  padding: clamp(6px, 1.1vw, 12px);
  border-radius: clamp(12px, 2vw, 22px);
  background: #0b0e12;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.7), inset 0 0 0 1px #2a313b;
}
.screen-tablet img { border-radius: clamp(4px, 0.8vw, 8px); }
figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

/* Facts: four plain statements, each led by a word in large type. */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts dl > div { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 6px; }
.facts dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 800 clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem)/1 var(--display); color: var(--navy); letter-spacing: -0.02em; }
.facts dd { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 860px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Two-by-two points, each under a rule. */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.point { border-top: 2px solid var(--navy); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.point p { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .split, .split-even { grid-template-columns: minmax(0, 1fr); }
}
.points-1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 600px) { .points { grid-template-columns: minmax(0, 1fr); } }

/* Lists with ticks. */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg);
}
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scope > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 720px) { .scope { grid-template-columns: minmax(0, 1fr); } }

/* Cards: what PitLink does, an icon and a sentence each. */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--muted); }
.icon { width: 32px; height: 32px; margin-bottom: 6px; fill: none; stroke: var(--orange-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) { .cards, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards-3 { grid-template-columns: minmax(0, 1fr); } }

/* The call to action at the foot of most pages. */
.cta { padding-block: clamp(56px, 8vw, 96px); border-top: 4px solid var(--orange); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta .wrap > div { display: flex; flex-direction: column; gap: 12px; max-width: 38em; }
.cta p { color: var(--on-dark-muted); }

/* Words beside an illustration. */
.feature-text { display: flex; flex-direction: column; gap: 14px; }
.feature-text p { color: var(--muted); }
/* Getting started: numbered steps, a real order. */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--navy); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 700 0.9rem/1 var(--mono); color: var(--orange-ink); }
.steps p { color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .steps-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Contact: the form beside the other ways to reach us. */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 0.95rem/1.3 var(--display); color: var(--navy); }
.field .optional { font: 400 0.85rem/1 var(--body); color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b9c1cb;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--navy); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status[data-kind="error"] { color: var(--error); }
.form-done { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.reach { display: flex; flex-direction: column; gap: 24px; }
.reach dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.reach dd { margin: 4px 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.expect { list-style: none; counter-reset: expect; display: flex; flex-direction: column; gap: 14px; }
.expect li { counter-increment: expect; display: grid; grid-template-columns: 28px minmax(0, 1fr); color: var(--muted); }
.expect li::before { content: counter(expect); font: 700 0.95rem/1.6 var(--mono); color: var(--orange-ink); }

/* Not found */
.lost { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.lost .code { font: 700 0.9rem/1 var(--mono); color: var(--orange); letter-spacing: 0.1em; }
