/* NMAJ Solutions preview site. Fonts are self-hosted (OFL). No third-party requests, no cookies, no analytics. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500i.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171310;
  --ink-soft: #3a342e;
  --muted: #6a635a;
  --paper: #f3eee4;
  --paper-deep: #e7dfd1;
  --card: #fbf8f2;
  --rule: #d4cbbc;
  --ember: #b34228;
  --ember-dark: #8c2e1c;
  --moss: #243f36;
  --moss-mid: #325347;
  --gold: #b8904a;
  --focus: #1a4d8c;
  --max: 70rem;
  --narrow: 42rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--ember-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ember); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.draft {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  padding: 0.55rem var(--pad);
  text-align: center;
}
.draft strong { font-weight: 600; color: #f0d2a8; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
.wrap-narrow {
  width: min(var(--narrow), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.brand-name .ph {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}
.brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.1rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}
.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.site-nav .nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  padding: 0.45rem 0.85rem;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--ember-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.75rem var(--pad) 1.1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

.hero {
  padding: clamp(2.8rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-dark);
  margin: 0 0 1rem;
}
h1, h2, h3, .hlike {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.8em;
}
h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  margin-bottom: 1rem;
}
h1 em, .lede em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ember-dark);
}
.lede {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--ember-dark); color: #fff; }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #000; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.call-log {
  background: var(--ink);
  color: var(--paper);
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 22%, transparent);
}
.call-log header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #3a332c;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5b8a6;
}
.call-log ol { list-style: none; margin: 0; padding: 0; }
.call-log li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid #2a251f;
  font-size: 0.92rem;
  align-items: baseline;
}
.call-log .num { white-space: nowrap; }
.call-log li:last-child { border-bottom: 0; }
.call-log .time { color: #c5b8a6; font-size: 0.82rem; }
.call-log .num { font-weight: 500; letter-spacing: 0.02em; }
.call-log .missed {
  color: #f0a090;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.call-log figcaption, .illust-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: #b7aa98;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.section { padding: clamp(3rem, 7vw, 5.25rem) 0; }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark .kicker { color: #f0a090; }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p, .section-dark li { color: #e4dbcf; }
.section-dark a { color: #f0d2a8; }
.section-moss { background: var(--moss); color: #f3eee4; }
.section-moss h2, .section-moss h3 { color: #f3eee4; }
.section-moss p, .section-moss li { color: #d7e4dc; }
.section-moss a { color: #f0d2a8; }
.section-deep { background: var(--paper-deep); }
.section-rule { border-top: 1px solid var(--rule); }

h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.section-intro {
  max-width: 38rem;
  margin-bottom: 2.2rem;
  color: var(--ink-soft);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .stat-grid { grid-template-columns: 1fr; }
}
.stat {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.3rem 1.25rem;
  border-radius: 3px;
}
.section-dark .stat {
  background: #221e1a;
  border-color: #3a332c;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ember);
  line-height: 1;
  margin-bottom: 0.55rem;
}
.stat p { margin: 0; color: var(--ink-soft); }
.stat cite, .source {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.cards-3, .cards-2 {
  display: grid;
  gap: 1.15rem;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); flex: 1; }
.card .more {
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ember-dark);
}
.card .more:hover { text-decoration: underline; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper-deep);
  color: var(--ink-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.7rem;
  width: fit-content;
}
.badge-ember { background: #f6d7cf; color: var(--ember-dark); }
.badge-moss { background: #d5e4dc; color: var(--moss); }
.badge-gold { background: #efe0bf; color: #6a4e16; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps > li {
  position: relative;
  padding: 0 0 1.6rem 3rem;
  border-left: 1px solid var(--rule);
  margin-left: 0.7rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .price-grid { grid-template-columns: 1fr; }
}
.plan {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.4rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.plan.is-anchor {
  border-color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 8%, transparent);
  position: relative;
}
.plan.is-suggested {
  border-style: dashed;
}
.plan h3 { margin-bottom: 0.15rem; font-size: 1.55rem; }
.plan .for { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }
.plan .fee {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.15rem;
}
.plan .fee small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 0.2rem;
}
.plan ul {
  margin: 1rem 0 1.2rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}
.plan li { margin: 0.3rem 0; }
.fine, .example, .note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}
.example {
  background: #efe6d4;
  color: var(--ink-soft);
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  margin: 1.1rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.example strong { color: var(--ink); }

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.7rem 0 0.2rem; color: var(--ink-soft); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid var(--moss-mid);
  border-bottom: 2px solid var(--moss-mid);
  transform: rotate(-45deg);
}

form {
  display: grid;
  gap: 0.9rem;
}
label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}
input, select, textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.form-help { font-size: 0.85rem; color: var(--muted); margin: 0; font-weight: 400; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ph, .placeholder {
  background: #efe0bf;
  color: #5a4210;
  padding: 0 0.25em;
  font-style: italic;
  border-radius: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.site-footer {
  background: var(--ink);
  color: #c5b8a6;
  padding: 2.4rem 0 2rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.site-footer a { color: #f0d2a8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9c9080;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.legal {
  border-top: 1px solid #3a332c;
  padding-top: 1.1rem;
  color: #9c9080;
  font-size: 0.8rem;
}

.prose h2 { margin-top: 2.2rem; }
.prose p { color: var(--ink-soft); }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.page-hero { padding: clamp(2.2rem, 6vw, 3.6rem) 0 1.2rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

.two-col-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .two-col-text { grid-template-columns: 1fr; }
}
