/* Waterbearer Software
   Colours, type and spacing are set on :root. */

:root {
  --ink: #2a2420;
  --ink-2: #5a5149;
  --ink-3: #857a6e;
  --paper: #fcf9f2;
  --white: #fcf9f2;
  --line: #e8e1d6;
  --teal: #415d82;
  --teal-hover: #334a68;
  --teal-soft: #f7ead9;
  --cyan: #f5a25d;
  --navy: #2a2420;
  --radius: 20px;
  --max: 1160px;
  --gutter: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--teal-hover);
}

h1,
h2,
h3 {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p {
  margin: 0 0 1.1em;
  color: var(--ink-2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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

.text {
  max-width: 42rem;
}

section {
  padding: 72px 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Crops the logo to the figure only */
.brand-logo img {
  position: absolute;
  left: -25px;
  top: -13px;
  width: 104px;
  height: 104px;
  max-width: none;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.bars {
  display: grid;
  gap: 5px;
  width: 18px;
}

.bars span {
  display: block;
  height: 2px;
  background: var(--ink);
}

/* ---------- Buttons and links ---------- */

.btn,
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary,
.button {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover,
.button:hover {
  background: var(--teal-hover);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--teal-soft);
  color: var(--navy);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

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

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 26px;
  align-items: center;
}

.links a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.links a:hover {
  color: var(--teal-hover);
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(245, 162, 93, 0.14), transparent 70%),
    linear-gradient(140deg, #173f68 0%, #415d82 58%, #5a7598 100%);
  display: flex;
  align-items: center;
  height: 620px;
  padding: 88px 0 130px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 58px);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  max-width: 19ch;
}

.hero-lede {
  color: #cfe3e5;
  font-size: 1.22rem;
  max-width: 38rem;
  margin: 26px 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Every hero uses the same fixed height, so the header block matches across pages */
.hero--short {
  height: 620px;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
}

/* ---------- Intro (inner pages) ---------- */

.page-intro {
  padding: 96px 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  max-width: 18ch;
  margin-bottom: 22px;
}

.lede {
  font-size: 1.22rem;
  color: var(--ink-2);
  max-width: 42rem;
}

.page-intro .text > * {
  animation: rise 0.8s var(--ease) both;
}

.page-intro .text > *:nth-child(2) {
  animation-delay: 0.1s;
}

.page-intro .text > *:nth-child(3) {
  animation-delay: 0.2s;
}

.page-intro .text > *:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Feature row ---------- */

.features {
  background: var(--paper);
  padding-top: 56px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -26px rgba(12, 24, 44, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature p {
  font-size: 1rem;
  margin-bottom: 18px;
}

.feature a {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Two-column sections ---------- */

.split {
  background: var(--paper);
}

.split.tint {
  background: var(--white);
}

@media (min-width: 861px) {
  .split .text {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
    max-width: none;
  }

  .split .text > h2 {
    grid-column: 1;
    grid-row: 1 / span 20;
    margin-bottom: 0;
  }

  .split .text > * {
    grid-column: 2;
  }
}

/* ---------- Clients ---------- */

.client-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.client-logo-box {
  display: flex;
  align-items: center;
  height: 96px;
}

.client-logo {
  display: block;
  max-width: 100%;
}

/* Tall stacked mark. Multiply drops the white background, so only use on
   light backgrounds. */
.client-logo--blend {
  height: 96px;
  width: auto;
  mix-blend-mode: multiply;
}

.client-logo--wide {
  width: 200px;
  height: auto;
}

/* The file has wide padding around the mark, so it is drawn larger */
.client-logo--padded {
  height: 112px;
  width: auto;
}

.client-name {
  display: block;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 14px;
}

.client-meta {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-3);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--teal) 70%, var(--line));
  opacity: 0.6;
}

.step {
  position: relative;
}

.step-num {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Dark band ---------- */

.band {
  background: linear-gradient(140deg, #173f68 0%, #415d82 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.band h2 {
  color: var(--white);
}

.band p {
  color: #cfe3e5;
  margin: 0;
}

.band .links a {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

/* ---------- Closing ---------- */

.closing {
  padding: 64px 0 72px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.closing-line {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.closing-email {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 3px solid var(--cyan);
}

.closing-email:hover {
  color: var(--teal-hover);
}

/* ---------- Contact ---------- */

.contact-lines {
  margin: 10px 0 0;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.contact-lines div {
  margin-bottom: 6px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
}

.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #9fb5bb;
  padding: 44px 0;
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-footer a {
  color: #dbe9eb;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .page-intro .text > * {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .feature:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .band {
    padding: 52px 40px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .band {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 28px;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 18px;
    --header-h: 68px;
  }

  body {
    font-size: 17px;
  }

  section {
    padding: 64px 0;
  }

  .hero {
    height: auto;
    padding: 72px 0 120px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-intro {
    padding: 64px 0 52px;
  }

  .brand small {
    display: none;
  }

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

  .closing-email {
    word-break: break-all;
  }
}
