/* Wardstow home and error pages. Layout only: colours and type come from /brand/brand.css.
   The legal and SMS pages keep css/styles.css and are not affected by this file.
   Mobile first; one breakpoint widens the grids. */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--slate); text-underline-offset: 0.18em; }
a:hover { color: var(--green); }

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--slate);
  border: 2px solid var(--slate);
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.site-nav a { color: var(--ink); text-decoration: none; padding-block: 0.25rem; }
.site-nav a:hover { color: var(--slate); text-decoration: underline; }

/* Type */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--slate);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

p { margin: 0 0 1rem; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 38rem;
}

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

/* Sections */

section { padding-block: 3.5rem; }
section + section { border-top: 1px solid var(--line); }

.hero { padding-block: 3.5rem 4rem; }

.section-intro { max-width: 40rem; margin-bottom: 2rem; }

/* Calls to action */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 6px;
  border: 2px solid var(--slate);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.button-primary { background: var(--slate); color: var(--slate-ink); }
.button-primary:hover { background: var(--green); border-color: var(--green); color: var(--slate-ink); }

.button-secondary { background: transparent; color: var(--slate); }
.button-secondary:hover { color: var(--green); border-color: var(--green); }

/* Feature list */

.features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 0.5rem;
}

.features p { color: var(--ink); }

.note {
  margin-top: 1.5rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Why it exists */

.pillars {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillars div { border-left: 3px solid var(--green); padding-left: 1rem; }

/* Reversed band for the demo request */

.band {
  background: var(--slate);
  color: var(--slate-ink);
  border-top: 0;
}
section + section.band { border-top: 0; }

.band h2, .band a { color: var(--slate-ink); }
.band a:hover { color: var(--slate-ink); text-decoration-thickness: 2px; }
.band :focus-visible { outline-color: var(--slate-ink); }

.band .button-primary { background: var(--slate-ink); color: var(--slate); border-color: var(--slate-ink); }
.band .button-primary:hover { background: transparent; color: var(--slate-ink); border-color: var(--slate-ink); }

.band .contact-line { margin-top: 1rem; }

/* Footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding-block: 2.5rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

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

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer p { margin: 0; }
.site-footer .entity { color: var(--ink); }

/* Wider screens */

@media (min-width: 44rem) {
  .wrap { padding-inline: 2rem; }
  section { padding-block: 4.5rem; }
  .hero { padding-block: 5rem 5.5rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
  .site-footer .entity-block { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

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

/* Pricing A/B test (A35) and the demo-request form */

.price-lead { font-size: 1.15rem; }
.price-note { font-size: 0.95rem; opacity: 0.85; }

.demo-form { display: grid; gap: 0.35rem; max-width: 32rem; margin-top: 1.5rem; }
.demo-form label { font-weight: 600; margin-top: 0.6rem; }
.demo-form .optional { font-weight: 400; opacity: 0.85; }
.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form select,
.demo-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 2px solid var(--slate-ink);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
}
.demo-form .form-note { font-size: 0.9rem; margin: 0.75rem 0 0.5rem; }
.demo-form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.demo-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
