/* ============================================================
   American Manufacturing Renaissance — design system
   Roles, not one-off values. Brass is split by role because
   #c49a3c on paper is ~2.3:1 and cannot carry text.
   ============================================================ */

:root {
  /* surfaces */
  --paper: #f4efe6;
  --paper-2: #eae2d3;
  --card: #fffdf8;
  --navy: #101820;
  --navy-2: #18222d;
  --line: #ded4c2;
  --line-strong: #c9bda6;

  /* text on light */
  --ink: #14120f;
  --muted: #4d4842;
  --fine: #645e54;

  /* text on navy */
  --on-navy: #f1eade;
  --on-navy-soft: #c3b9a4;

  /* brass by role */
  --brass: #c49a3c;
  --brass-ink: #7a5610;
  --brass-2: #e0b85a;
  --brass-wash: #f7edd4;

  --forest: #2c5344;
  --danger: #7a2626;

  /* radius scale */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* space scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;

  --measure: 62ch;
  --header-h: 66px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--brass-ink);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero-dark :focus-visible,
.band :focus-visible,
header.site :focus-visible { outline-color: var(--brass-2); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--brass);
  color: #1b1408;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap--narrow { width: min(760px, calc(100% - 40px)); }

section { padding: clamp(56px, 7vw, 96px) 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
section.tight { padding: clamp(40px, 4.5vw, 64px) 0; }
section.alt { background: var(--paper-2); }

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

h1, h2, h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 {
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 24ch;
  margin: 0 0 var(--s2);
}
h2 {
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  max-width: 28ch;
  margin: 0 0 var(--s2);
}
h3 {
  font-weight: 500;
  font-size: 1.28rem;
  margin: 0 0 var(--s1);
}
p { margin: 0 0 14px; max-width: var(--measure); }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 56ch; }
.fine { color: var(--fine); font-size: 15px; max-width: 60ch; }
strong { font-weight: 700; }

/* one label component replaces eyebrow / stamp / need-who / num / kicker */
.label,
.eyebrow {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--brass-ink);
  margin: 0 0 10px;
}
.label--stamp {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--brass);
  border-radius: var(--r-pill);
  margin-bottom: var(--s2);
}
.label--num {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: none;
}
/* any navy surface flips the label to the on-dark brass */
.hero-dark .label,
.band .label,
.feature .label,
.portrait .label { color: var(--brass-2); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 13px 22px;
  background: var(--navy);
  color: var(--on-navy);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn.brass { background: var(--brass); color: #1b1408; }
.btn.brass:hover { background: var(--brass-2); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { background: var(--card); }
.btn.ghost-light {
  background: transparent;
  color: var(--on-navy);
  border: 1px solid rgba(241, 234, 222, 0.4);
}
.btn.ghost-light:hover { background: rgba(241, 234, 222, 0.08); }
.btn.lg { padding: 16px 28px; font-size: 1.02rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 24, 32, 0.95);
  border-bottom: 1px solid rgba(196, 154, 60, 0.3);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 12px 0;
  min-height: var(--header-h);
}
.brand {
  text-decoration: none;
  color: var(--on-navy);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
}
.nav-links { display: flex; gap: var(--s3); align-items: center; }
.nav-links a { text-decoration: none; color: var(--on-navy-soft); font-size: 15px; }
.nav-links a:hover { color: var(--on-navy); }
.nav-links .btn { color: #1b1408; }

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

.hero-dark {
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(196, 154, 60, 0.2), transparent 60%),
    linear-gradient(180deg, #101820 0%, #17212b 100%);
  color: var(--on-navy);
  padding: clamp(44px, 6vw, 76px) 0 clamp(36px, 5vw, 60px);
}
.hero-dark h1 { color: #fff; }
.hero-who {
  color: var(--on-navy-soft);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 12px;
}
.benefit {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--on-navy);
  max-width: 60ch;
  margin-bottom: var(--s3);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 var(--s3);
}
.hero-actions .note { color: var(--on-navy-soft); font-size: 14px; margin: 0; }

/* four-discipline credibility strip */
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: var(--s3);
  border-top: 1px solid rgba(196, 154, 60, 0.3);
  margin: 0;
  list-style: none;
}
.creds li {
  color: var(--on-navy-soft);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.creds li::before { content: "— "; color: var(--brass-2); }

/* ---------- trigger cards ---------- */

.triggers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}
.trigger {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: var(--r);
  padding: var(--s3) var(--s3) 18px;
}
.trigger h3 { max-width: 26ch; }
.trigger p { color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.trigger p:last-child { margin-bottom: 0; }
.trigger .then { color: var(--forest); }
.trigger .then strong { color: var(--forest); }

/* ---------- figures ---------- */

.figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s3);
}
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption {
  color: var(--fine);
  font-size: 14px;
  margin-top: var(--s2);
  max-width: none;
}
figure { margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

/* ---------- featured offer (rank 01) ---------- */

.feature {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: center;
  box-shadow: 0 30px 60px -40px rgba(16, 24, 32, 0.75);
}
.feature .feature-title {
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  max-width: 24ch;
  margin-bottom: var(--s2);
}
.feature p { color: var(--on-navy-soft); }
.feature .lead-in { color: var(--on-navy); font-size: 1.08rem; }
.feature-points { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 12px; }
.feature-points li {
  color: var(--on-navy);
  font-size: 16px;
  padding-left: 26px;
  position: relative;
}
.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--brass-2);
}
.feature .mock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(196, 154, 60, 0.32);
  border-radius: var(--r);
  padding: 14px;
}
.feature .mock svg { display: block; width: 100%; height: auto; }
.feature .mock-note { color: var(--on-navy-soft); font-size: 13px; margin: 12px 0 0; }

/* ---------- compact offers (02–04) ---------- */

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}
.offer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3) var(--s3) 18px;
}
.offer-card p { color: var(--muted); font-size: 16px; margin-bottom: 0; }
.offer-card .label { margin-bottom: 6px; }

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

.steps {
  list-style: none;
  margin: var(--s3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--brass-wash);
  border: 1px solid var(--brass);
  color: var(--brass-ink);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.14rem; }
.steps p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.steps .when { color: var(--brass-ink); font-weight: 700; }

/* ---------- price ---------- */

.price {
  background: var(--brass-wash);
  border: 1px solid var(--brass);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}
.price h2 { max-width: 30ch; }
.price p { color: #5c4a22; }
.price .fine { color: #6b5528; margin-bottom: 0; }
.price-card {
  background: var(--card);
  border: 1px solid var(--brass);
  border-radius: var(--r);
  padding: var(--s3);
}
.price-card dl { margin: 0 0 var(--s3); }
.price-card dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-ink);
}
.price-card dd {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.price-card dd:last-of-type { margin-bottom: 0; }

/* ---------- trust ---------- */

.trust {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
}
.portrait {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s3);
}
.portrait .name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 6px;
}
.portrait p { color: var(--on-navy-soft); font-size: 16px; }
.portrait .role { color: var(--on-navy); }
.degrees { display: grid; gap: 12px; margin-top: var(--s2); }
.degrees div {
  border-left: 3px solid var(--brass);
  padding-left: 14px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- instead of (compact comparison) ---------- */

.instead { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.instead li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: var(--s3);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.instead li:last-child { border-bottom: 1px solid var(--line); }
.instead dfn {
  font-style: normal;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.14rem;
}
.instead p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin-top: var(--s3);
}
.stats article {
  border-top: 2px solid var(--brass);
  padding-top: 14px;
}
.stats .stat {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1;
}
.stats p { color: var(--muted); font-size: 15px; margin: 0; }
.stats + .fine {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
}

/* ---------- later tools ---------- */

.future-band {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s3) var(--s3);
}
.future-band h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.future-band ul { margin: 0 0 var(--s2); padding-left: 20px; color: var(--muted); }
.future-band li { margin: 8px 0; font-size: 16px; }

/* ---------- faq ---------- */

.faq { margin-top: var(--s3); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.14rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 15px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.5rem;
  color: var(--brass-ink);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 16px; margin: 0 0 18px; }

/* ---------- close band ---------- */

.band {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--s3);
  align-items: center;
}
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { color: var(--on-navy-soft); margin: 0; }

footer.site {
  padding: var(--s4) 0 var(--s5);
  color: var(--fine);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
footer.site p { max-width: 70ch; }
footer.site a { color: var(--muted); display: inline-block; padding: 8px 0; }

.sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  background: var(--brass);
  color: #1b1408;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  padding: 15px 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.3);
}

/* ---------- interior pages ---------- */

.page-lead { padding: var(--s4) 0 var(--s1); }
.hero { padding: var(--s4) 0 var(--s5); }

/* ---------- forms ---------- */

form.apply {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: start;
  padding-bottom: var(--s5);
}
.fields { display: grid; gap: 14px; }
.fields .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 14px; font-weight: 700; color: var(--muted); display: block; }
input, select, textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 11px 12px;
  font-family: inherit;
  /* Fields sit inside their label, so an inherited size would pick up the label's.
     iOS Safari zooms the viewport on focus below 16px, which breaks the form on a phone. */
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}
input:hover, select:hover, textarea:hover { border-color: var(--brass); }
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.agree input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brass-ink);
}
.form-note { color: var(--fine); font-size: 14px; }

.letter { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.letter > summary {
  cursor: pointer;
  padding: 14px 40px 14px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  list-style: none;
  position: relative;
}
.letter > summary::-webkit-details-marker { display: none; }
.letter > summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brass-ink);
}
.letter[open] > summary::after { content: "–"; }
.preview {
  background: #fff;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
  padding: var(--s3) var(--s3) 12px;
}
.preview .kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brass-ink);
  font-weight: 700;
}
.preview h2 { font-size: 1.3rem; max-width: none; }
.preview .meta, .preview .sign { color: var(--fine); font-size: 14px; }
.preview p { font-size: 15px; max-width: none; }
.err { color: var(--danger); font-size: 15px; min-height: 1.2em; font-weight: 700; }
.ok { color: var(--forest); }

.next-steps { list-style: none; margin: var(--s3) 0; padding: 0; display: grid; gap: 12px; }
.next-steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  color: var(--muted);
  font-size: 16px;
}
.next-steps li strong { color: var(--ink); display: block; }

table.admin { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
table.admin th, table.admin td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.admin th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fine); }
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--brass-wash);
  color: var(--brass-ink);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .feature, .two-col, .trust, .price { grid-template-columns: 1fr; }
  .offers, .steps { grid-template-columns: 1fr 1fr; }
  .feature .mock { order: -1; }
}

@media (max-width: 720px) {
  /* clears the fixed apply bar (56px tall, 12px up) plus the home indicator */
  body { font-size: 17px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .triggers, .offers, .steps, .stats, .band, form.apply, .fields .row { grid-template-columns: 1fr; }
  .instead li { grid-template-columns: 1fr; gap: 6px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 10px 16px; font-size: 15px; white-space: nowrap; }
  .cta-more { display: none; }
  .brand { font-size: 0.95rem; }
  .brand small { display: none; }
  .sticky-cta { display: block; }
  h1 { max-width: none; }
  h2 { max-width: none; }
  .band .btn { width: 100%; }
}

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