/* ==========================================================================
   Newton Financials — Design tokens
   Concept: a working ledger. Deep ledger-green + aged paper + brass foil.
   Figures set in tabular mono, right-aligned, like real line items.
   ========================================================================== */

:root {
  --ink: #1c2a22;
  --paper: #f6f0df;
  --paper-line: rgba(28, 42, 34, 0.14);
  --green-deep: #16281c;
  --green-mid: #21402b;
  --green-soft: #2f5238;
  --brass: #b4884b;
  --brass-light: #d9b879;
  --white: #fdfbf3;
  --shadow: rgba(15, 22, 17, 0.25);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

a {
  color: var(--green-mid);
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}
a:hover { color: var(--brass); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.9rem;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.site-header {
  background: var(--green-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 184, 121, 0.25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--brass-light); }
.brand span { color: var(--brass-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(253, 251, 243, 0.4);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(253, 251, 243, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--brass);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    background: var(--green-deep);
    border-bottom: 1px solid rgba(217, 184, 121, 0.25);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .main-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(253, 251, 243, 0.08);
  }
}

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

.hero {
  background: var(--green-deep);
  color: var(--white);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent, transparent 2.6rem,
      rgba(253, 251, 243, 0.05) 2.6rem, rgba(253, 251, 243, 0.05) calc(2.6rem + 1px)
    );
}

.hero .wrap {
  padding-top: 5rem;
  padding-bottom: 4.5rem;
}

.hero h1 { color: var(--white); max-width: 18ch; }

.hero .lede {
  color: rgba(253, 251, 243, 0.82);
  max-width: 46ch;
  font-size: 1.15rem;
}

/* ---------- Ledger line — the signature device ----------
   A dotted-leader line item, like an entry in a real ledger:
   label ......................... figure
   Used wherever a concrete figure or date is the point. */

.ledger-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  margin: 1.6rem 0;
  max-width: 34rem;
}

.ledger-line .label { white-space: nowrap; color: inherit; opacity: 0.85; }
.ledger-line .leader {
  flex: 1;
  border-bottom: 1px dotted currentColor;
  opacity: 0.35;
  height: 0.6em;
}
.ledger-line .figure {
  white-space: nowrap;
  font-weight: 600;
  color: var(--brass-light);
  font-size: 1.1em;
}

.hero .ledger-line { color: var(--white); }

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brass);
  color: var(--green-deep);
  font-weight: 600;
}
.btn-primary:hover { background: var(--brass-light); color: var(--green-deep); }

.btn-ghost {
  background: transparent;
  border-color: rgba(253, 251, 243, 0.5);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--green-mid);
  color: var(--green-deep);
}
.btn-outline-dark:hover { border-color: var(--brass); color: var(--brass); background: rgba(180,136,75,0.08); }

/* ---------- Sections ---------- */

section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.section-deep {
  background: var(--green-deep);
  color: rgba(253, 251, 243, 0.92);
}
.section-deep h2, .section-deep h3 { color: var(--white); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--brass);
  padding: 1.8rem;
  border-radius: 2px;
}

.card .num {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--green-soft);
  color: var(--green-mid);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

/* ---------- Pricing ledger ---------- */

.price-block {
  background: var(--white);
  border: 1px solid var(--paper-line);
  padding: 2.5rem;
  max-width: 34rem;
}

.price-figure {
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--green-deep);
  font-weight: 600;
  margin: 0.2rem 0 0;
}
.price-figure sup { font-size: 1rem; color: var(--brass); top: -1.6em; }
.price-figure .per { font-size: 1rem; font-family: var(--font-body); color: var(--ink); opacity: 0.7; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.price-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--paper-line);
}
.price-list li::before { content: "—"; color: var(--brass); }

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

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.5rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.95rem;
  border: 1px solid var(--brass);
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.contact-form {
  display: grid;
  gap: 1.2rem;
  max-width: 32rem;
}

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--paper-line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 2px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  border-color: var(--brass);
}

.contact-details {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.contact-details dt { color: var(--brass); margin-top: 1rem; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.contact-details dd { margin: 0.2rem 0 0; color: var(--ink); }

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

footer.site-footer {
  background: var(--green-deep);
  color: rgba(253, 251, 243, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
footer.site-footer a { color: rgba(253, 251, 243, 0.85); }
footer.site-footer .brand { font-size: 1.1rem; }
.footer-meta { font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.7; }

/* ---------- Utility ---------- */

.center { text-align: center; }
.max-prose { max-width: 62ch; }
.mt-0 { margin-top: 0; }
