/* ==========================================================================
   Production-Readiness Audits, marketing site
   Brand: "Plumb & Brass". Tokens track the audit report generator
   (production-audit/tools/report/build-report.mjs). Deep navy + one restrained
   brass accent + a serif display voice over a system-sans body.
   Display uses a system-serif stack now (zero web fonts); the report embeds
   Fraunces, and the site can self-host a Fraunces subset later without a token change.
   ========================================================================== */

:root {
  /* neutrals + ink */
  --ink:   #1d2433;
  --muted: #5b6472;
  --line:  #e4e7ec;
  --soft:  #f6f7f9;

  /* Plumb & Brass authority + accent */
  --navy:  #13294B;   /* deepened from #1f3a5f */
  --navy2: #0B1A33;   /* deepened from #16294a */
  --brass:        #C69A4C;  /* decorative only: never body/label text on white (fails AA ~2.3:1) */
  --brass-bright: #E3BE78;  /* accent text on navy only (~8:1 on --navy) */

  /* severity ramp (kept verbatim from the report for continuity) */
  --crit: #b42318;

  /* text tints for use on the navy gradient (AA-checked on --navy) */
  --on-navy:      #ffffff;
  --on-navy-soft: #d8e2f1;

  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Charter, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, Consolas, monospace;

  --maxw: 1080px;
  --pad: 22px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
section[id], header[id] { scroll-margin-top: 16px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* accessibility: skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--navy);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 650; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.measure { max-width: 64ch; }
a { color: var(--navy); }

/* the plumb-bob mark */
.mark { display: block; flex: 0 0 auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; line-height: 1;
  min-height: 44px; padding: .9em 1.5em;
  border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
/* Two-tone focus ring: navy reads on light, the white halo reads on navy (WCAG 1.4.11) */
.btn:focus-visible,
.link-strong:focus-visible,
.brand:focus-visible,
.cta-aside-link:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255,255,255,.85);
}
.btn--lg { font-size: 1.05rem; padding: 1.05em 1.8em; }
.btn--sm { font-size: .9rem; padding: .6em 1.1em; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #eef3fb; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.10); }

/* hero */
.hero {
  background: linear-gradient(160deg, var(--navy), var(--navy2));
  color: var(--on-navy);
  padding-bottom: 68px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 40px; }
.brand { text-decoration: none; color: #fff; display: flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .01em; }
.brand-tag { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-bright); }

.hero-content { max-width: 780px; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--brass-bright); }
.hero h1 { margin: .6rem 0 0; font-family: var(--font-display); font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em; font-weight: 600; }
.accent-bar { display: block; width: 70px; height: 5px; background: var(--brass); border-radius: 3px; margin: 1.5rem 0 0; }
.accent-bar--center { margin-inline: auto; }
.hero .sub { margin: 1.25rem 0 0; font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: var(--on-navy-soft); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.9rem; }
.cta-row--center { justify-content: center; }
.cta-aside { margin: 1rem 0 0; font-size: .95rem; }
.cta-aside--center { text-align: center; }
.cta-aside-link { color: var(--brass-bright); text-decoration: none; font-weight: 600; }
.cta-aside-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.trust { margin: 1.1rem 0 0; font-size: .92rem; color: var(--on-navy-soft); }

/* generic section */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); }

h2 {
  position: relative; margin: 0 0 1.4rem; padding-bottom: .55rem;
  font-family: var(--font-display); color: var(--navy);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem); line-height: 1.15; letter-spacing: -.005em; font-weight: 600;
}
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--brass); border-radius: 3px; }
h3 { font-size: 1.08rem; margin: 1.4rem 0 .3rem; color: var(--ink); }
.lead { font-size: 1.16rem; }

/* problem: severity-styled example cards, echoing report finding cards */
.examples { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 12px; }
.example { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--crit); border-radius: 8px; padding: 14px 18px; font-weight: 500; }

/* checklists */
.checklist { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: 14px; max-width: 64ch; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-8' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.inline-cta { margin-top: 1.6rem; }
.link-strong { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.link-strong:hover { color: var(--navy2); }

/* stat strip, echoing report .stat cards */
.stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 1.7rem; align-items: stretch; }
.stats-label { flex-basis: 100%; margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat { flex: 1 1 150px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--muted); border-radius: 10px; padding: 18px 20px; }
.stat--crit { border-top-color: var(--crit); }
.stat-n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat--crit .stat-n { color: var(--crit); }
.stat-l { margin-top: .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* callout */
.callout { margin-top: 1.5rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 14px 18px; }

/* offer */
.offer { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: 0 1px 2px rgba(19,41,75,.06); max-width: 640px; }
.price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--navy); margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-from { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.price-note { font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--muted); }
.guarantee { font-size: 1.1rem; margin: 1.1rem 0 .3rem; }
.boundary { color: var(--muted); font-size: .95rem; }

/* about (face-optional; plumb mark is the signature) */
.about { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.about-sig { flex: 0 0 auto; padding-top: 4px; }
.about-body { flex: 1 1 320px; }

/* faq */
.faq { max-width: 68ch; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: .3rem 0 0; color: var(--ink); }

/* inquiry band (the conversion finale) */
.inquiry-band { background: linear-gradient(160deg, var(--navy), var(--navy2)); color: #fff; padding: 66px 0; }
.inquiry-band h2 { color: #fff; }
.inquiry-band h2::after { background: var(--brass); }
.inquiry-sub { color: var(--on-navy-soft); max-width: 52ch; margin: 0 0 26px; font-size: 1.08rem; }
.form-card { background: #fff; border-radius: 14px; padding: 26px; max-width: 560px; box-shadow: 0 20px 50px -24px rgba(0,0,0,.55); }
.intake { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; }
.field label { font-weight: 650; font-size: .95rem; color: var(--ink); }
.intake input, .intake textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
.intake textarea { resize: vertical; }
.intake input:focus, .intake textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,41,75,.15); }
.intake .btn { width: 100%; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-help { margin: 0; font-size: .85rem; color: var(--muted); }
.form-help a { color: var(--navy); }
.inquiry-band .cta-aside { margin-top: 20px; }

/* footer */
.footer { background: var(--navy2); color: var(--on-navy-soft); padding: 34px 0; font-size: .92rem; }
.footer a { color: #fff; }
.footer-grid { display: grid; gap: 8px; }
.footer .boundary { color: var(--brass-bright); }
.copyright { color: var(--on-navy-soft); opacity: .8; }

/* sticky mobile CTA */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--navy); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 14px rgba(0,0,0,.22); z-index: 50;
}
.sticky-cta .btn { width: 100%; }

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .brand-tag { display: none; }
  .hero { padding-bottom: 48px; }
  .topbar { padding: 16px 0 26px; }
}

/* thanks + submitted pages */
.thanks-main { min-height: 70vh; display: flex; align-items: center; }
.thanks-card { text-align: center; max-width: 44ch; margin: 0 auto; }
.thanks-card h1 { font-family: var(--font-display); font-weight: 600; }
.thanks-card .prep { text-align: left; margin: 1.5rem auto 0; }
