/* =========================================================
   Punchlist Crew — styles
   Colors and fonts live in :root. Change them there.
   ========================================================= */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #23272b;
  --ink-2: #3a4046;
  --muted: #5f666c;
  --line: #d6cfc0;
  --accent: #e08a1e;        /* safety amber, used on dark or as fill */
  --accent-ink: #9a5200;    /* amber dark enough for text on paper */
  --ok: #3f6b4a;
  --dark: #1f2327;
  --dark-line: #3a4148;

  --font-sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}
p { margin: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--ink); color: var(--paper);
  padding: 8px 14px; z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.2;
  transition: background .15s, color .15s, box-shadow .15s, transform .15s;
  box-shadow: 4px 4px 0 var(--accent);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--accent); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: none; transform: none; }

.btn-small { padding: 9px 14px; font-size: .92rem; box-shadow: 3px 3px 0 var(--accent); }
.btn-large { padding: 18px 30px; font-size: 1.1rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.btn-light:hover { box-shadow: 7px 7px 0 var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--ink-2);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--accent); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; padding: 0; position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--ink); transform: translateX(-50%); content: "";
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 6px 10px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 17ch;
}
.lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Punch list card */
.punch-card {
  margin: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 20px 20px 16px;
}
.punch-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 2px solid var(--ink);
}
.tag {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.punch-card-sub { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.punch-items { list-style: none; margin: 0; padding: 0; }
.punch-items li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.box {
  width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 2px;
  position: relative;
}
.is-done .box { background: var(--ink); }
.is-done .box::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--accent); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.item-main strong { display: block; font-size: .98rem; }
.item-main small { color: var(--muted); font-size: .82rem; }
.is-done .item-main strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.status {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 2px; white-space: nowrap;
}
.status-ok { background: #e3ece4; color: var(--ok); }
.status-wait { background: #fbeedb; color: var(--accent-ink); }
.punch-card figcaption {
  margin-top: 14px; font-size: .85rem; color: var(--muted);
}

/* Pain strip */
.pain-strip {
  list-style: none; padding: 0;
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.pain-strip li {
  padding: 20px 24px 0 0;
  color: var(--ink-2);
}
.pain-strip li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.pain-strip strong { color: var(--ink); display: block; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head > p:not(.sheet) { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); }

.sheet {
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-ink);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sheet::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
}
.step { padding: 26px 22px 30px; position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step-num {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 700; font-size: .85rem;
  color: var(--paper); background: var(--ink);
  padding: 3px 8px; border-radius: 2px;
  margin-bottom: 18px;
}
.step:nth-child(4) .step-num { background: var(--accent); color: var(--ink); }
.step h3 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-size: .95rem; color: var(--ink-2); }

/* Tool categories */
.tools {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
}
.tools-label {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.tools-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tools-list li {
  font-size: .9rem; font-weight: 600;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

/* Proof */
.section-dark {
  background: var(--dark);
  color: var(--paper);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section-dark .sheet { color: var(--accent); }
.section-dark .section-head > p:not(.sheet) { color: #c9cbc8; }
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--accent);
}
.stat { padding: 26px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--dark-line); }
.stat dt {
  font-family: var(--font-mono); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .07em;
  color: #a9adab;
}
.stat dd {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-lead dd { font-size: clamp(2.8rem, 6.5vw, 4.8rem); color: var(--accent); }
.fine-print {
  margin-top: 40px; max-width: 680px;
  font-size: .9rem; color: #a9adab;
  padding-left: 14px; border-left: 2px solid var(--dark-line);
}

/* Options */
.options {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.option {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 24px 30px;
  position: relative;
}
.option::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 8px;
  background: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
}
.option:nth-child(1)::before { background: linear-gradient(90deg, var(--accent) 100%, var(--ink) 0); }
.option:nth-child(2)::before { background: linear-gradient(90deg, var(--accent) 60%, var(--ink) 60%); }
.option:nth-child(3)::before { background: linear-gradient(90deg, var(--accent) 25%, var(--ink) 25%); }
.option-label {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 8px 0 12px;
}
.option h3 { font-size: 1.3rem; margin-bottom: 12px; }
.option p:last-child { color: var(--ink-2); font-size: .98rem; }

.note {
  margin-top: 32px;
  display: flex; gap: 12px; align-items: baseline;
  color: var(--ink-2);
}
.note-mark { color: var(--accent); font-size: .8rem; }

/* FAQ */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(24px, 5vw, 64px); align-items: start;
}
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; line-height: 26px; text-align: center;
  border: 2px solid var(--ink); border-radius: 2px;
  font-family: var(--font-mono); font-weight: 700;
}
.faq details[open] summary::after { content: "\2013"; background: var(--ink); color: var(--paper); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* Contact */
.contact { background: var(--accent); color: var(--ink); }
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px; align-items: center;
}
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.contact-inner > div > p:not(.sheet) { margin-top: 16px; font-size: 1.1rem; max-width: 52ch; }
.sheet-light { color: var(--ink); }
.contact-action { justify-self: end; text-align: center; }
.contact-hint { margin-top: 14px; font-size: .88rem; }

/* Footer */
.site-footer { background: var(--dark); color: #c9cbc8; padding: 36px 0; font-size: .9rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.brand-footer { color: var(--paper); }
.brand-footer .brand-mark { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step + .step { border-left: 0; }
  .step { border-top: 1px solid var(--line); }
  .step:nth-child(-n+2) { border-top: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--line); }
  .step:last-child { grid-column: 1 / -1; border-left: 0; }

  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-lead { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--dark-line); padding-bottom: 24px; }
  .stat-lead + .stat { padding-left: 0; border-left: 0; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }

  .hero-grid { grid-template-columns: 1fr; }
  .punch-card { max-width: 520px; }

  .options { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { margin-bottom: 0; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-action { justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .pain-strip { grid-template-columns: 1fr; }
  .pain-strip li, .pain-strip li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step:nth-child(2) { border-top: 1px solid var(--line); }

  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--dark-line); }

  .hero-actions .btn { flex: 1 1 100%; }
  .punch-card { box-shadow: 5px 5px 0 var(--ink); padding: 16px; }
  .punch-items li { grid-template-columns: 20px minmax(0, 1fr); }
  .punch-items .status { grid-column: 2; justify-self: start; }
  .faq summary { font-size: 1rem; }
  .faq details p { padding-right: 0; }
  .contact-action, .contact-action .btn { width: 100%; }
}

/* Example findings */
.findings {
  margin-top: 36px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.finding {
  border: 1px solid var(--dark-line);
  border-left: 4px solid var(--accent);
  padding: 22px 24px;
  background: rgba(255, 255, 255, .03);
}
.finding-label {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin-bottom: 10px;
}
.finding p:last-child { color: #d6d7d4; }
@media (max-width: 760px) {
  .findings { grid-template-columns: 1fr; }
}

/* Keep stat numbers aligned when a label wraps */
.stat { display: flex; flex-direction: column; }
.stat dd { margin-top: auto; padding-top: 10px; }

/* Hero subhead */
.hero-sub {
  margin-top: 18px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  max-width: 40ch;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.hero .lede { margin-top: 18px; }

/* Primary engagement option */
.options { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.option-primary {
  border-width: 3px;
  box-shadow: 6px 6px 0 var(--accent);
  padding: 32px 28px 34px;
}
.option-primary::before { left: -3px; right: -3px; top: -3px; height: 10px; }
.option-primary h3 { font-size: 1.55rem; }
.option-tag {
  position: absolute; top: -14px; right: 18px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--accent); color: var(--ink);
  border: 2px solid var(--ink);
  padding: 3px 8px; border-radius: 2px;
}

/* Who's behind this */
.section-rule { border-top: 1px solid var(--line); }
.about {
  display: grid; grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px); align-items: start;
}
.about-photo {
  position: relative; width: 160px; height: 160px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
  display: grid; place-items: center; overflow: hidden;
}
.about-photo span { font-weight: 800; font-size: 2.6rem; letter-spacing: -0.02em; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-copy { max-width: 720px; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about-copy p:not(.sheet) { color: var(--ink-2); font-size: 1.08rem; }
.about-copy p:not(.sheet) + p { margin-top: 14px; }

/* Secondary CTA links */
.link-secondary {
  display: inline-block; margin-top: 14px;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px;
}
.link-secondary:hover { border-bottom-color: var(--paper); }
.footer-link { color: var(--paper); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.footer-link[hidden], .link-secondary[hidden] { display: none; }

/* Tablet and down: keep section headlines from crowding */
.section-head h2, .hero h1 { text-wrap: balance; overflow-wrap: break-word; }
@media (max-width: 1024px) {
  .section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .options { grid-template-columns: 1fr; }
  .option-primary { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { width: 120px; height: 120px; }
  .about-photo span { font-size: 2rem; }
}
