/* WhatTrade AI — public website styles */

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

@font-face {
  font-family: "Caveat Brush";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/caveat-brush-latin-400-normal.woff2") format("woff2");
}

:root {
  --navy: #0b1726;
  --ink: #1c2b3a;
  --muted: #4b5b6a;
  --green: #128744;
  --green-hover: #0e7439;
  --green-text: #15803d;
  --green-deep: #0b6337;
  --green-deep-hover: #094f2c;
  --mint: #edf7f1;
  --cream: #fdf5ec;
  --strip: #f1f5f7;
  --line: #e4e9ed;
  --footer: #15222a;
  --danger: #b42318;
  --radius: 0.75rem;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat Brush", "Bradley Hand", "Segoe Print", cursive;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-text);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--green-deep);
}

:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.container {
  width: min(100% - 2.5rem, 75rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 46rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.br {
  display: block;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.4rem;
  border: 0;
  border-radius: 0.6rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(18, 135, 68, 0.6);
}

.btn--primary:hover {
  background: var(--green-hover);
  color: #fff;
}

.btn--deep {
  background: var(--green-deep);
  color: #fff;
}

.btn--deep:hover {
  background: var(--green-deep-hover);
  color: #fff;
}

.btn--lg {
  padding: 1rem 1.6rem;
  border-radius: 0.7rem;
  font-size: 1.0625rem;
}

.btn--sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.btn .icon--chat {
  width: 1.55em;
  height: 1.55em;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid #bde2cb;
  border-radius: 999px;
  background: #e6f5ec;
  color: var(--green-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.soon-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.form-card .eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: #243746;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
}

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

.brand__mark {
  flex: none;
  width: 3rem;
  height: 2.5rem;
  color: var(--green);
}

.brand__text {
  display: grid;
  gap: 0.2rem;
}

.brand__name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand__ai {
  color: var(--green-text);
}

.brand__tagline {
  color: #2f4252;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand--light,
.brand--light:hover {
  color: #fff;
}

.brand--light .brand__mark {
  color: #fff;
}

.brand--light .brand__name {
  font-size: 1.5rem;
}

.brand--light .brand__tagline {
  color: #b9c6cd;
  font-size: 0.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav__list {
  display: flex;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list a {
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] {
  color: var(--green-text);
}

.site-nav__list a[aria-current="page"] {
  font-weight: 600;
}

.site-nav__cta {
  padding: 0.78rem 1.45rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f4f3f1;
}

.hero__media {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: -2;
}

.hero__media picture,
.banner__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus, 62% 22%);
}

/* For a portrait source photo: shown whole, feathered into a soft
   site-coloured backdrop instead of being cropped to fill. */
.hero__media--portrait {
  background: linear-gradient(90deg, #f4f3f1 0%, #e4e0da 24%, #c4b9ab 40%, #a08b78 62%, #836d5b 100%);
}

.hero__media--portrait img {
  position: absolute;
  bottom: 0;
  left: 22%;
  width: auto;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 80%, transparent 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 35%,
    rgba(255, 255, 255, 0.94) 42%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 62%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: clamp(30rem, 46vw, 41rem);
}

.hero__copy {
  align-self: center;
  padding-block: clamp(2.25rem, 4vw, 3.75rem) clamp(1.75rem, 2.6vw, 2.5rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.05vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.hero__accent {
  color: var(--green-text);
}

.hero__lead {
  max-width: 23.5em;
  margin: 1.1rem 0 0;
  font-size: clamp(1.06rem, 1.8vw, 1.32rem);
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
  margin-top: 1.6rem;
}

.hero__note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero__visual {
  position: relative;
}

.scribble {
  margin: 0;
  color: #fff;
  font-family: var(--hand);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transform: rotate(-9deg);
}

.scribble__line {
  width: 5.2em;
  margin: 0.15em 0 0 0.35em;
  color: #5ee08f;
}

.scribble--hero {
  position: absolute;
  top: clamp(1.75rem, 3.4vw, 3rem);
  right: 0.25rem;
}

/* Phone illustration: sized entirely from --w so it scales as one piece. */
.phone {
  --w: clamp(15.2rem, 24vw, 19.5rem);
  position: absolute;
  top: clamp(8.9rem, 14vw, 11.6rem);
  right: 0;
  width: var(--w);
  height: calc(var(--w) * 2.06);
  padding: calc(var(--w) * 0.036);
  border-radius: calc(var(--w) * 0.165);
  background: #0c0c0e;
  box-shadow: inset 0 0 0 2px #46464b, 0 0 0 1px #000, 0 2rem 3.5rem -1.25rem rgba(0, 0, 0, 0.6);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.132);
  background: #f4f1ec;
  color: #111b21;
  font-size: calc(var(--w) * 0.0505);
  line-height: 1.38;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85em 1.25em 0.35em 2.1em;
  background: #fff;
  font-weight: 600;
}

.phone__notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34%;
  height: 1.8em;
  border-radius: 0 0 1.1em 1.1em;
  background: #0c0c0e;
  transform: translateX(-50%);
}

.phone__signal {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.phone__signal svg {
  height: 0.78em;
  width: auto;
  fill: currentColor;
}

.phone__header {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.7em 1em 0.85em 1.2em;
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 20, 26, 0.08);
}

.phone__back {
  width: 0.7em;
  height: auto;
  margin-right: 0.35em;
  color: #1c2b3a;
}

.phone__avatar {
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.phone__avatar svg {
  width: 1.75em;
}

.phone__contact {
  display: grid;
  line-height: 1.25;
}

.phone__name {
  font-size: 1.06em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.phone__presence {
  color: #667781;
  font-size: 0.82em;
}

.phone__chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8em;
  padding: 0.85em 0.8em;
}

.phone__chip {
  align-self: center;
  margin: 0;
  padding: 0.28em 0.85em;
  border-radius: 0.6em;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  color: #54656f;
  font-size: 0.74em;
}

.bubble {
  max-width: 84%;
  margin: 0;
  padding: 0.62em 0.85em 0.5em;
  border-radius: 0.95em;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.bubble--out {
  align-self: flex-end;
  border-top-right-radius: 0.25em;
  background: #d9fdd3;
}

.bubble--in {
  align-self: flex-start;
  border-top-left-radius: 0.25em;
  background: #fff;
}

.bubble__meta {
  float: right;
  margin: 0.55em 0 0 0.9em;
  color: #4f5f69;
  font-size: 0.74em;
  white-space: nowrap;
}

.bubble__ticks {
  color: #53bdeb;
  letter-spacing: -0.35em;
  padding-right: 0.35em;
}

/* ---- Audience cards ----------------------------------------------------- */

.audiences {
  padding-block: 1.25rem 2.25rem;
}

.audiences--choose {
  padding-block: 2.5rem 3.5rem;
}

.audiences__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.audience {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.7rem 2.1rem 2rem;
  border-radius: var(--radius);
}

.audience--companies {
  background: linear-gradient(135deg, #eef8f2, #e8f4ed);
}

.audience--labourers {
  background: linear-gradient(135deg, #fef7ef, #fbf0e4);
}

.audience h2 {
  margin: 0 0 1.05rem;
  font-size: clamp(1.75rem, 3.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.06;
}

.audience__icon {
  position: absolute;
  top: 2.6rem;
  right: 2.4rem;
  width: 4.9rem;
  color: var(--green-deep);
}

.audience__icon .icon {
  width: 100%;
  height: auto;
}

.audience__text {
  max-width: 24rem;
  margin: 0 0 1.4rem;
}

.ticks {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.ticks .icon--check {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  color: var(--green-deep);
}

.audience .btn {
  margin-top: auto;
  padding: 0.9rem 1.75rem;
}

/* ---- How it works ------------------------------------------------------- */

.steps {
  padding-block: 1.25rem 2.25rem;
  text-align: center;
}

.steps__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.1vw, 2.15rem);
  font-weight: 800;
}

.steps__lead {
  max-width: 40rem;
  margin: 0.4rem auto 0;
  color: #3d4d5c;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 3.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step__head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-right: 3.1rem;
}

.step__number {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-top: 1.1rem;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 4.85rem;
  height: 4.85rem;
  border-radius: 50%;
  background: #e1f3e9;
  color: var(--green);
}

.step__icon .icon {
  width: 2.7rem;
  height: 2.7rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.step p {
  max-width: 17rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.75rem;
  right: -2.4rem;
  width: 1.3rem;
  height: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.trust {
  padding-block: 1.15rem 0.9rem;
  background: var(--strip);
}

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

.trust__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
}

.trust__list .icon {
  width: 2.3rem;
  height: 2.3rem;
  color: var(--green-deep);
}

.trust__note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

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

.banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #17242c;
  color: #fff;
}

.banner__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 15%;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      90deg,
      rgba(18, 28, 35, 0.94) 0%,
      rgba(18, 28, 35, 0.72) 38%,
      rgba(18, 28, 35, 0.18) 66%,
      rgba(18, 28, 35, 0.45) 100%
    ),
    linear-gradient(180deg, rgba(21, 34, 42, 0) 55%, var(--footer) 100%);
}

.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 13.5rem;
  padding-block: 1.9rem 1.6rem;
}

.banner h2 {
  margin: 0 0 0.6rem;
  color: #fff;
  font-size: clamp(1.65rem, 3.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.08;
}

.banner p {
  margin: 0 0 1.15rem;
  color: #e8eef1;
}

.scribble--banner {
  margin-right: 1.5rem;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

.scribble--banner .scribble__line {
  width: 3.4em;
}

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

.site-footer {
  background: var(--footer);
  color: #cfd9de;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: 1.5rem 1.4rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

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

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__strap {
  max-width: 9.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.site-footer__legal {
  padding-block: 0.9rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #9fb0b9;
  font-size: 0.72rem;
}

.site-footer__legal p {
  margin: 0 0 0.3rem;
}

/* ---- Inner pages -------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.page-hero--mint {
  background: linear-gradient(135deg, #eef8f2, #e6f3eb);
}

.page-hero--cream {
  background: linear-gradient(135deg, #fef7ef, #fbf0e4);
}

.page-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.page-hero h1 {
  max-width: 17em;
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.page-hero__lead {
  max-width: 38rem;
  margin: 1rem 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.page-hero__icon {
  flex: none;
  width: clamp(5rem, 11vw, 8rem);
  color: var(--green-deep);
}

.page-hero__icon .icon {
  width: 100%;
  height: auto;
}

.page-hero__figure {
  display: grid;
  flex: none;
  place-items: center;
  align-content: center;
  width: clamp(9rem, 17vw, 12.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  text-align: center;
}

.page-hero__figure span {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.page-hero__figure small {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.section--tint {
  background: var(--strip);
}

.section--form {
  flex: 1;
}

.section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

.feature p {
  margin: 0;
  color: #3d4d5c;
}

.notice {
  margin: 1.75rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--green);
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--mint);
}

.notice--draft {
  margin: 0 0 1.5rem;
  border-left-color: #b45309;
  background: #fff7e6;
}

.tbc {
  padding: 0.05em 0.3em;
  border-radius: 0.25em;
  background: #fff1c2;
  color: #5c3b00;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

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

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

/* ---- Forms -------------------------------------------------------------- */

.form-card {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(11, 23, 38, 0.35);
}

.form-card h1,
.form-card h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 800;
}

.form-card__lead {
  margin: 0 0 1.5rem;
  color: #3d4d5c;
}

.form-card--done {
  text-align: center;
}

.form-card--done .form-card__lead {
  max-width: 32rem;
  margin-inline: auto;
}

.done-mark {
  width: 3.5rem;
  margin: 0 auto 1rem;
  color: var(--green);
}

.done-mark .icon {
  width: 100%;
  height: auto;
}

.form-switch {
  margin: 1.25rem 0 0;
  text-align: center;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  align-items: end;
}

.field {
  grid-column: 1 / -1;
  min-width: 0;
}

.field--half {
  grid-column: auto;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field__hint {
  margin: -0.15rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.field__error {
  margin: 0 0 0.4rem;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.field__control {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #c3ccd4;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--navy);
  font: inherit;
}

textarea.field__control {
  min-height: 7rem;
  resize: vertical;
}

select.field__control {
  padding-right: 2.4rem;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.75rem center / 1.1rem no-repeat;
}

.field__control:hover {
  border-color: #8fa0ad;
}

.field__control:focus {
  border-color: var(--green);
  outline: 3px solid rgba(18, 135, 68, 0.28);
  outline-offset: 0;
}

.field--error .field__control {
  border-color: var(--danger);
}

.consent {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #f8fafb;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.8rem;
  align-items: start;
}

.check .field__error {
  grid-column: 1 / -1;
}

.check__box {
  width: 1.45rem;
  height: 1.45rem;
  margin: 0.1rem 0 0;
  accent-color: var(--green);
}

.check__label {
  font-size: 0.94rem;
}

.form__submit {
  width: 100%;
  margin-top: 1.5rem;
}

.form__small {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.form__small a,
.form-switch a {
  display: inline-block;
  padding-block: 0.3rem;
}

.form-alert {
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  border: 2px solid var(--danger);
  border-radius: 0.75rem;
  background: #fef3f2;
}

.form-alert__title {
  margin: 0;
  color: #7a271a;
  font-weight: 700;
}

.form-alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.form-alert a {
  color: var(--danger);
  font-weight: 600;
}

.form .form__section {
  margin: 1.75rem 0 0.9rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.form .form__section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Tick-box groups: large tap targets that wrap on small screens. */
.choices {
  margin: 0;
  padding: 0;
  border: 0;
}

.choices legend {
  padding: 0;
}

.choices__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.5rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  border: 1.5px solid #c3ccd4;
  border-radius: 0.6rem;
  background: #fff;
  color: var(--navy);
  font-size: 0.95rem;
  cursor: pointer;
}

.choice:hover {
  border-color: #8fa0ad;
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  flex: none;
  accent-color: var(--green);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: #e9f6ee;
}

.choice:has(input:focus-visible) {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.choice--plain {
  width: 100%;
}

@media (max-width: 30rem) {
  .choices__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice {
    padding-right: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Working areas: a heading for the London group, and wider boxes that carry
   a reminder of the places each London area covers. */
.choices__group {
  margin: 0.35rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.choices__list--wide {
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.choice--detail {
  align-items: flex-start;
  padding-block: 0.65rem;
}

.choice--detail input {
  margin-top: 0.1rem;
}

.choice--detail span {
  font-weight: 600;
}

.choice--detail small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
}

@media (max-width: 30rem) {
  .choices__list--wide {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Two tick boxes side by side stay the same height when one wraps. */
.field--half:has(> .choice--plain) {
  align-self: stretch;
}

.field--half > .choice--plain {
  height: 100%;
}

/* A short read-only summary inside a form (the details we hold). */
.summary {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #f8fafb;
}

.summary div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: 0.25rem 1rem;
}

.summary dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.summary dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 30rem) {
  .summary div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-switch--left {
  margin-top: 0;
  text-align: left;
}

.keep-link .keep-link__more {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.consent__note {
  margin: -0.2rem 0 0.9rem 2.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.form__grid--after {
  margin-top: 1.5rem;
}

.field--error .choice {
  border-color: var(--danger);
}

.more {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #f8fafb;
}

.more summary {
  padding: 0.9rem 1.1rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}

.more .form__grid {
  padding: 0.25rem 1.1rem 1.2rem;
}

/* The wider list of working areas, inside the tick-box group. */
.more--areas {
  margin-top: 0.75rem;
}

.more--areas .choices__list {
  padding: 0.25rem 1.1rem 1.1rem;
}

.more__hint {
  margin: 0;
  padding: 0 1.1rem 0.6rem;
}

.money {
  position: relative;
}

.money__sign {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  color: var(--muted);
  transform: translateY(-50%);
}

.money .field__control {
  padding-left: 1.8rem;
}

.notice--left {
  text-align: left;
}

.keep-link {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #bde2cb;
  border-radius: 0.75rem;
  background: var(--mint);
  text-align: left;
}

.keep-link h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.keep-link p {
  margin: 0 0 0.5rem;
}

.keep-link__url {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-card--danger {
  margin-top: 1.5rem;
  border-color: #f3c7c2;
}

.form-card--danger h2 {
  font-size: 1.25rem;
}

.btn--danger {
  background: var(--danger);
  color: #fff;
}

.btn--danger:hover {
  background: #912018;
  color: #fff;
}

/* What the business does and where recruitment starts, under the hero. */
.reach {
  background: var(--navy);
  color: #fff;
}

.reach__text {
  margin-block: 0;
  padding-block: 0.95rem;
  font-size: 1rem;
  text-align: center;
}

.reach__text strong {
  font-weight: 700;
}

.reach__text span {
  color: #d5dee6;
}

.keep-link--plain {
  border-color: var(--line);
  background: #f8fafb;
}

.fee-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* Present for spam filtering only; never shown to people. */
.form-extra {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

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

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 1.5rem 2rem -1.5rem rgba(11, 23, 38, 0.35);
  }

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

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
}

@media (min-width: 44.01rem) and (max-width: 62rem) {
  .hero__media--portrait img {
    left: 4%;
  }

  .audience {
    padding: 1.5rem 1.5rem 1.7rem;
  }

  .audience__icon {
    top: 2.2rem;
    right: 1.5rem;
    width: 3.9rem;
  }

  .steps__list {
    gap: 1.5rem 2.25rem;
  }

  .step:not(:last-child)::after {
    right: -1.75rem;
  }

  .step__head {
    padding-right: 2.2rem;
  }
}

@media (max-width: 44rem) {
  .hero {
    background: #fff;
  }

  .hero::before {
    display: none;
  }

  .hero__inner {
    display: block;
    min-height: 0;
  }

  .hero__copy {
    padding-block: 2rem 1.6rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10.8vw, 3.6rem);
  }

  .hero__visual {
    height: clamp(22rem, 88vw, 31rem);
  }

  .hero__media {
    inset: auto 0 0 0;
    height: clamp(22rem, 88vw, 31rem);
  }

  .hero__media img {
    object-position: 22% 18%;
  }

  .hero__media--portrait img {
    left: -4%;
  }

  .phone {
    --w: clamp(12.6rem, 50vw, 17rem);
    top: clamp(5.9rem, 24vw, 8rem);
    right: -0.35rem;
  }

  .scribble--hero {
    top: 0.9rem;
    right: 0.35rem;
    font-size: clamp(1.2rem, 5.4vw, 1.75rem);
  }

  .audiences__grid,
  .features {
    grid-template-columns: 1fr;
  }

  .audiences__grid {
    gap: 1.1rem;
  }

  .audience {
    padding: 1.5rem 1.4rem 1.6rem;
  }

  .audience__icon {
    top: 1.7rem;
    right: 1.4rem;
    width: 3.6rem;
  }

  .audience h2 {
    padding-right: 4.25rem;
  }

  .audience .btn {
    width: 100%;
  }

  .steps__list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .trust__list {
    grid-template-columns: 1fr;
    justify-items: start;
    width: fit-content;
    margin-inline: auto;
    gap: 0.75rem;
  }

  .trust__list li {
    justify-content: flex-start;
  }

  .banner__inner {
    min-height: 15rem;
  }

  .scribble--banner {
    display: none;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__strap {
    max-width: none;
  }

  .page-hero__icon,
  .page-hero__figure {
    display: none;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .field--half {
    grid-column: 1 / -1;
  }

  .cta-row .btn {
    width: 100%;
  }
}

@media (max-width: 24rem) {
  .container {
    width: min(100% - 2rem, 75rem);
  }

  .site-header__inner {
    gap: 0.75rem;
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .brand__tagline {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .brand__mark {
    width: 2.25rem;
    height: 1.9rem;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

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

  .btn {
    transition: none;
  }
}

.fee-mark {
  color: inherit;
  text-decoration: none;
}
