/**
 * Fieldsworn marketing site.
 *
 * Six static pages sharing this one stylesheet. tokens.css and components.css are copies of
 * packages/tokens/, written by scripts/syncShared.sh — do not edit them here.
 */
@import url('./tokens.css');
@import url('./components.css');

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* --- Top bar ---------------------------------------------------------------------------------- */
/* The same 64px bar on every page, with the current one underlined. Transcribed from
   "Fieldsworn Marketing - Ledger.dc.html". */

.site-nav {
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-bg);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
}

.nav-links {
  display: flex;
  flex: 1;
  gap: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 64px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 15px;
  color: var(--color-neutral-700);
  text-decoration: none;
}

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

/* Inset rather than a border, so the underline sits on the bar's own bottom edge. */
.nav-links a[aria-current='page'] {
  color: var(--color-text);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav-cta {
  flex: 0 0 auto;
}

/* Narrow: the four links scroll sideways under their own steam rather than being reordered
   around the CTA. An earlier version moved them below with `order`, which only takes effect
   once the row actually wraps — at widths where it did not, the "Book a pilot" button landed
   in the middle of the navigation. */
@media (max-width: 860px) {
  .site-nav .wrap {
    gap: 12px;
  }

  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
    padding: 0 10px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  /* At phone width the links and the CTA cannot share a row honestly. The CTA wins the row and
     the links take their own, because the button is the page's only job. */
  .site-nav .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
  }

  .nav-links a {
    height: 44px;
  }

  .brand {
    flex: 1;
  }
}

/* --- Page body --------------------------------------------------------------------------------- */

main {
  flex: 1;
  padding: 56px 0 80px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: 52px;
  margin: 0 0 var(--space-4);
}

h1 em {
  font-style: normal;
  color: var(--color-accent-700);
}

h2 {
  margin: 0 0 var(--space-3);
}

.lede {
  font-size: 18px;
  color: var(--color-neutral-800);
  max-width: 62ch;
  line-height: 1.55;
}

.section-lede {
  font-size: 17px;
  color: var(--color-neutral-800);
  max-width: 56ch;
  margin: 0 0 28px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--color-neutral-600);
}

/* --- Proof strip ------------------------------------------------------------------------------- */
/* One claim, and it is the one the site can substantiate from its own copy. Three further stat
   cards were designed for this row — median turnaround, completion rate, failed-visit rate —
   and they are deliberately not here. See the commented block in index.html. */

.proof {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 40px;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-divider);
}

.proof-v {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 44px;
  line-height: 1;
}

.proof-k {
  font-size: 15px;
  color: var(--color-neutral-700);
  max-width: 46ch;
}

/* --- Cards and grids ---------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.grid .card {
  padding: 22px;
  gap: 10px;
}

.grid .card h3 {
  margin: 0;
}

.grid .card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-neutral-800);
  line-height: 1.55;
}

.k {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.home-cards {
  margin-top: 44px;
}

.home-cards .card {
  display: flex;
  flex-direction: column;
}

.home-cards .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* --- Story ---------------------------------------------------------------------------------------- */

blockquote {
  margin: 28px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--color-accent);
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 62ch;
}

blockquote footer {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-neutral-600);
}

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

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-divider);
}

.step:last-child {
  border-bottom: none;
}

.step-n {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
  color: var(--color-accent);
  flex: 0 0 28px;
  padding-top: 3px;
}

.step strong {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 18px;
  display: block;
}

.step p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--color-neutral-800);
  line-height: 1.55;
  max-width: 68ch;
}

/* --- Pilot ------------------------------------------------------------------------------------------- */

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
}

@media (max-width: 860px) {
  .pilot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pilot-side {
  padding-top: 56px;
}

@media (max-width: 860px) {
  .pilot-side {
    padding-top: 0;
  }
}

.pilot-item {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-divider);
}

.pilot-item-t {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 16px;
}

.pilot-item-b {
  font-size: 14px;
  color: var(--color-neutral-700);
  line-height: 1.5;
}

.contact-card {
  padding: 22px;
  gap: 14px;
  max-width: 560px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-alt {
  font-size: 13px;
  color: var(--color-neutral-600);
}

.form-error {
  color: var(--status-bad-ink);
  font-size: 14px;
}

.form-success .tick {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-accent);
}

/* --- Oath strip ---------------------------------------------------------------------------------------- */

.oath {
  border-top: 1px solid var(--color-divider);
  background: var(--color-accent-900);
  color: var(--color-bg);
  margin-top: auto;
}

.oath .wrap {
  padding: 60px 28px;
  text-align: center;
}

.oath h2 {
  margin: 0 auto 14px;
  max-width: 24ch;
  color: var(--color-bg);
  font-size: 25px;
}

.oath p {
  max-width: 56ch;
  margin: 0 auto 26px;
  font-size: 16px;
  opacity: 0.85;
  line-height: 1.55;
}

.oath .btn {
  background: var(--color-bg);
  color: var(--color-accent-900);
  border-color: var(--color-bg);
}

.oath .btn:hover {
  background: var(--color-neutral-200);
  color: var(--color-accent-900);
}

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

footer.site {
  border-top: 1px solid var(--color-divider);
}

footer.site .wrap {
  padding: 28px;
  font-size: 13.5px;
  color: var(--color-neutral-700);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.stamp {
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-neutral-600);
}
