/* Convoy Group "coming soon" (D1863): Brock's design version 2, with the official logo, v5-docs planning/convoy/convoy-group-style-v2.md.
   Tokens, type and layout as written there. */
:root {
  --cg-bg:        #0b1620;
  --cg-surface:   #13222e;
  --cg-border:    #2a3d4b;
  --cg-rule:      #1c2c38;
  --cg-text:      #eef1ec;
  --cg-text-2:    #b3c0c9;
  --cg-text-3:    #8a9aa6;
  --cg-accent:    #bad532;
  --cg-on-accent: #0b1620;
  --cg-link-hover:#29a9e0;
  --cg-pad-x:     clamp(20px, 5vw, 80px);
  --cg-display:   "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cg-body:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cg-bg); }
body {
  margin: 0;
  background: var(--cg-bg);
  color: var(--cg-text);
  font-family: var(--cg-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2 { margin: 0; }

a { color: var(--cg-text); text-decoration: none; }
a:hover { color: var(--cg-link-hover); }
a:focus-visible, .input:focus-visible, .button:focus-visible, .thanks:focus-visible {
  outline: 2px solid var(--cg-accent);
  outline-offset: 3px;
}

/* Hero: the banner under a navy scrim; the logo top left, eyebrow and headline bottom left. */
.hero {
  min-height: 720px;
  padding: 32px var(--cg-pad-x) 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--cg-bg);
  background-image:
    linear-gradient(to bottom, rgba(11,22,32,.6) 0%, rgba(11,22,32,.2) 30%, rgba(11,22,32,.4) 65%, #0b1620 100%),
    url("/redwoods-web.webp");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
/* The logo (convoy-logo-on-dark.png, 574 x 76): never recoloured, stretched or given effects; a link to the top, not a heading. */
.logo {
  align-self: flex-start;
  display: block;
  line-height: 0;
}
.logo img {
  display: block;
  width: clamp(260px, 40vw, 560px);
  height: auto;
}
.hero-text {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eyebrow {
  font-family: var(--cg-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cg-accent);
}
.headline {
  font-family: var(--cg-display);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

/* Main band: heading left, form right; wraps on narrow screens. */
.band {
  padding: 64px var(--cg-pad-x) 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
}
.band-left { flex: 1 1 420px; max-width: 620px; }
.band-right { flex: 1 1 360px; max-width: 520px; }
.section-heading {
  font-family: var(--cg-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.signup { display: flex; flex-direction: column; gap: 12px; }
.form-label { font-size: 15px; font-weight: 500; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.input {
  flex: 1 1 240px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: 10px;
  color: var(--cg-text);
  font-family: var(--cg-body);
  font-size: 16px;
  font-weight: 400;
}
.input::placeholder { color: var(--cg-text-3); opacity: 1; }
.button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 24px;
  background: var(--cg-accent);
  color: var(--cg-on-accent);
  border: none;
  border-radius: 10px;
  font-family: var(--cg-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.button:disabled { opacity: .7; cursor: progress; }
.small-print { font-size: 13px; color: var(--cg-text-3); }
.retry { font-size: 15px; color: var(--cg-text); }

/* The honeypot: out of sight and out of the tab order; people never fill it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.thanks {
  background: var(--cg-surface);
  border: 1px solid var(--cg-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.thanks-title { font-weight: 600; }
.thanks-body { color: var(--cg-text-2); overflow-wrap: anywhere; }

/* Without script: a form post comes back to /#thanks or /#retry (the service's 303). */
.thanks:target, .retry:target { display: block; }
.thanks:target { display: flex; }
[hidden] { display: none; }

.footer {
  padding: 28px var(--cg-pad-x);
  border-top: 1px solid var(--cg-rule);
  font-size: 14px;
  color: var(--cg-text-3);
}

/* Phones: the columns and the input/button stack; the logo shrinks to 260px and the headline to 48px (both by their clamps). */
@media (max-width: 600px) {
  .field-row { flex-direction: column; }
  .input, .button { flex: 0 0 auto; width: 100%; }
}
