/* =========================================================================
   Wrenfield Partners — lead capture site
   Mobile-first. System fonts only (no web font downloads).
   Colour palette is defined once, here, in :root.
   ========================================================================= */

:root {
  --ink:        #1A1A18;   /* page background — warm charcoal */
  --ink-raised: #211F1C;   /* alternating band background   */
  --ink-field:  #14140F;   /* form input background         */

  --paper:      #F2EDE4;   /* primary text — warm off-white */
  --paper-dim:  #ADA69A;   /* secondary text                */
  --paper-faint:#7C766C;   /* hints, micro copy             */

  --accent:     #C8A15A;   /* the single accent colour      */
  --accent-ink: #1A1A18;   /* text on top of the accent     */

  --line:       rgba(242, 237, 228, 0.14);
  --line-soft:  rgba(242, 237, 228, 0.07);
  --danger:     #E8927C;

  --measure:    68ch;
  --radius:     4px;

  /* Tells the browser this page is dark, so native checkboxes, scrollbars
     and autofill styling match instead of flashing white. */
  color-scheme: dark;

  /* A serif appears in exactly one place: the wordmark. It is what makes the
     mark read as a heritage investor rather than a startup. System faces only,
     so it still costs nothing to download. */
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino,
           'Times New Roman', serif;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------- structure */

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow { max-width: 620px; }

.band {
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}

.band-alt { background: var(--ink-raised); }

/* ---------------------------------------------------------------- header */

.site-header {
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  color: var(--accent);
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  line-height: 1.1;
}

a.brand:hover .brand-name { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------------------ type */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: 2.05rem; }
h2 { font-size: 1.45rem; margin-bottom: 1.4rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--paper); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ hero */

.hero { padding: 44px 0 60px; }

.hero .lede {
  font-size: 1.08rem;
  color: var(--paper-dim);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.micro {
  font-size: 0.85rem;
  color: var(--paper-faint);
  margin-top: 1rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #D8B36F; color: var(--accent-ink); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

/* -------------------------------------------------------------- criteria */

.criteria { list-style: none; margin: 0; padding: 0; }

.criteria li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.criteria li:last-child { border-bottom: 1px solid var(--line-soft); }

.criteria-num {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding-top: 0.35em;
  flex: 0 0 auto;
}

.criteria-text { color: var(--paper-dim); max-width: var(--measure); }

/* ----------------------------------------------------------------- steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.steps p { color: var(--paper-dim); margin-bottom: 0; }

/* ------------------------------------------------------------------ form */

.section-intro { color: var(--paper-dim); margin-bottom: 2rem; }

.field { margin-bottom: 22px; }

.row { display: grid; gap: 22px; }

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.req { color: var(--accent); }
.opt { color: var(--paper-faint); font-weight: 400; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;            /* 16px stops iOS zooming on focus */
  color: var(--paper);
  background: var(--ink-field);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;           /* comfortable tap target */
}

textarea { resize: vertical; line-height: 1.5; }

input::placeholder, textarea::placeholder { color: var(--paper-faint); }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

/* Hide the number-input spinners: they are fiddly on a phone. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tel-group { display: flex; }

.tel-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--paper-dim);
  font-variant-numeric: tabular-nums;
}

.tel-group input {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hint  { font-size: 0.83rem; color: var(--paper-faint); margin: 7px 0 0; }
.tzs   { font-size: 0.86rem; color: var(--accent); margin: 7px 0 0; font-variant-numeric: tabular-nums; }
.err   { font-size: 0.85rem; color: var(--danger); margin: 7px 0 0; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; }
.checkbox input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); }
.checkbox span { color: var(--paper-dim); }

.field-consent { margin: 30px 0 26px; }

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

.form-status { font-size: 0.9rem; color: var(--paper-dim); margin: 12px 0 0; min-height: 1.2em; }
.form-status.is-error { color: var(--danger); }

/* Honeypot — visually gone, still reachable by naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------- thankyou */

.thankyou {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.thankyou h3 { color: var(--accent); }
.thankyou p:last-child { margin-bottom: 0; color: var(--paper-dim); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 48px;
  color: var(--paper-faint);
  font-size: 0.88rem;
}
.site-footer p { margin: 0 0 6px; }

.footer-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
  opacity: 0.85;
}

.footer-name {
  font-family: var(--serif);
  color: var(--paper);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

/* --------------------------------------------------------- prose (legal) */

.prose { padding: 40px 0 64px; }
.prose h2 { font-size: 1.1rem; margin-top: 2.2rem; }
.prose p, .prose li { color: var(--paper-dim); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5rem; }
.back-link { display: inline-block; margin-top: 2.5rem; font-size: 0.9rem; }

/* ----------------------------------------------------------- wider screens */

@media (min-width: 620px) {
  .row { grid-template-columns: 1fr 1fr; }
  .submit-row .btn { width: auto; min-width: 240px; }
}

@media (min-width: 780px) {
  body { font-size: 18px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 76px 0 96px; }
  .hero .lede { font-size: 1.2rem; }
  .band { padding: 80px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
}
