/* ============================================================
   UNCLE STAMP — site.css  (Direction A: "first class")
   paper #FAF7F0 · ink #1E2A4A · stamp red #C8102E · blue #2E5090
   display: Besley (Clarendon) · body: Public Sans · utility: Courier Prime
   Cache rule: bump ?v= in every HTML file when this changes.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper: #FAF7F0;
  --ink: #1E2A4A;
  --ink-soft: #3A445E;
  --red: #C8102E;
  --red-dark: #A50D26;
  --blue: #2E5090;
  --line: rgba(30, 42, 74, 0.22);
  --line-soft: rgba(30, 42, 74, 0.13);
  --white: #FFFFFF;
  --max: 1120px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: 'Besley', Georgia, serif; font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

.kicker {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.mono { font-family: 'Courier Prime', monospace; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Public Sans', sans-serif;
}
.btn:hover { background: var(--red-dark); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.link-quiet {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* airmail stripe accent (borrowed from direction B, use sparingly) */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--red) 0 10px, var(--paper) 10px 20px, var(--blue) 20px 30px, var(--paper) 30px 40px);
}

/* rubber stamp accent (borrowed from direction C, use sparingly) */
.rubber {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 3px double var(--red);
  padding: 5px 12px;
  border-radius: 3px;
  transform: rotate(-3deg);
  opacity: 0.88;
  font-size: 0.78rem;
}

/* perforation divider */
.perf { border: none; border-top: 3px dotted var(--line); margin: 0; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .word { font-family: 'Besley', serif; font-weight: 900; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--red); }

/* industries dropdown */
.dd { position: relative; }
.dd > a::after { content: " ▾"; font-size: 0.7em; }
.dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 3px 4px 0 rgba(30,42,74,.12);
  min-width: 200px;
  padding: 8px 0;
  z-index: 60;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 16px; font-size: 0.88rem; }
.dd-menu a:hover { background: var(--paper); color: var(--red); }

/* mobile nav */
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px; font-family: 'Courier Prime', monospace; font-size: 0.8rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .dd-menu { position: static; display: block; border: none; box-shadow: none; background: none; padding: 4px 0 0 14px; }
  .dd > a::after { content: ""; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .sub { margin-top: 18px; font-size: 1.1rem; color: var(--ink-soft); max-width: 48ch; }
.hero-bullets { margin: 24px 0 0; list-style: none; }
.hero-bullets li { padding: 7px 0 7px 30px; position: relative; font-size: 0.98rem; }
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 16px; height: 12px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 1px;
}
.hero-bullets li::after {
  content: "✓";
  position: absolute;
  left: 3px; top: 6px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}
.ctas { margin-top: 28px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* postcard object */
.postcard {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 4px 5px 0 rgba(30,42,74,.14);
  padding: 26px;
  position: relative;
  transform: rotate(-1.4deg);
}
.postcard .card-line {
  font-family: 'Besley', serif;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.12;
  max-width: 15ch;
}
.postcard .card-co { font-family: 'Courier Prime', monospace; font-size: 0.75rem; margin-top: 48px; color: var(--ink-soft); }
.postcard .stamp-corner { position: absolute; top: 16px; right: 16px; }
.postcard .postmark { position: absolute; top: 8px; right: 68px; opacity: 0.8; }

/* hero card stack — three sample client cards, fanned */
.card-stack { position: relative; max-width: 430px; margin: 72px auto 28px; }
.pc {
  aspect-ratio: 3 / 2;
  border: 10px solid #fff;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(30,42,74,.08), 5px 7px 0 rgba(30,42,74,.16);
  transition: transform 0.35s ease;
}
.pc-head {
  font-family: 'Besley', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.15;
  max-width: 16ch;
}
.pc-offer {
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  margin-top: 12px;
}
.pc-foot {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  margin-top: auto;
  opacity: 0.85;
}
.pc-front {
  position: relative;
  z-index: 3;
  background: #24503A;
  color: #F5F1E4;
  transform: rotate(-1.4deg);
}
.pc-front .pc-offer { color: #CFE3C9; }
.pc-mid, .pc-back { position: absolute; inset: 0; }
.pc-mid {
  z-index: 2;
  background: #3A4450;
  color: #F5F1E4;
  transform: rotate(-7deg) translate(-46px, -34px);
}
.pc-back {
  z-index: 1;
  background: #24587F;
  color: #EAF3F9;
  transform: rotate(5.5deg) translate(48px, -58px);
}
.card-stack:hover .pc-mid { transform: rotate(-8.5deg) translate(-56px, -42px); }
.card-stack:hover .pc-back { transform: rotate(7deg) translate(58px, -68px); }
.card-stack:hover .pc-front { transform: rotate(-0.6deg); }
@media (max-width: 860px) {
  .card-stack { margin: 64px auto 12px; max-width: 360px; }
  .pc-mid { transform: rotate(-7deg) translate(-24px, -30px); }
  .pc-back { transform: rotate(5.5deg) translate(26px, -52px); }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 44px 0; }
.section .lede { margin-top: 14px; color: var(--ink-soft); max-width: 62ch; }

/* trust strip */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 26px 0; }
.trust p { font-family: 'Courier Prime', monospace; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-bottom: 14px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.trust-logos span { font-weight: 700; font-size: 1rem; color: var(--ink); opacity: 0.75; }
.trust-logos img { width: auto; filter: grayscale(1); opacity: 0.62; transition: filter 0.2s ease, opacity 0.2s ease; }
.trust-logos img:hover { filter: none; opacity: 1; }

/* flagship diagram */
.diagram {
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
}
@media (max-width: 700px) { .diagram { grid-template-columns: 1fr; } }
.timeline { display: flex; gap: 12px; flex-wrap: wrap; }
.timeline .tcard {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}
.timeline .tcard b { color: var(--red); display: block; font-size: 0.85rem; }

/* worked math */
.math-block {
  margin-top: 36px;
  background: var(--ink);
  color: #EFEDE8;
  padding: 36px;
  position: relative;
}
.math-block h3 { color: #fff; margin-bottom: 18px; }
.math-block .rows { font-family: 'Courier Prime', monospace; font-size: 1rem; line-height: 2.05; }
.math-block .rows b { color: #FFD8DE; font-weight: 700; }
.math-block .caveat { margin-top: 18px; font-size: 0.88rem; color: #B9C0D4; max-width: 60ch; }

/* plays */
.plays-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
@media (max-width: 860px) { .plays-grid { grid-template-columns: 1fr; } }
.play {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.play .mono-tag { font-family: 'Courier Prime', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.play p { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }
.play a { font-weight: 700; font-size: 0.9rem; color: var(--red); text-decoration: none; }
.play a:hover { text-decoration: underline; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--red); padding-top: 14px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Courier Prime', monospace;
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.step h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; } }
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px;
}
.tier-inner { border: 3px dotted var(--line); padding: 26px; height: 100%; }
/* pro = the one most people pick */
.tier-pro {
  position: relative;
  border: 2px solid var(--red);
  box-shadow: 5px 6px 0 rgba(200,16,46,.14);
}
.tier-pro .tier-inner { border-color: rgba(200,16,46,.45); }
.tier-pro .t-name { color: var(--red); }
.pro-badge {
  position: absolute;
  top: -16px;
  right: 16px;
  background: var(--paper);
  z-index: 1;
}
.tier .t-name { font-family: 'Courier Prime', monospace; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.tier .t-price { font-family: 'Besley', serif; font-weight: 900; font-size: 2.6rem; margin-top: 8px; }
.tier .t-price span { font-size: 1.1rem; font-weight: 700; }
.tier .t-per { font-family: 'Courier Prime', monospace; font-size: 0.92rem; margin-top: 2px; color: var(--red); font-weight: 700; }
.tier ul { list-style: none; margin-top: 18px; }
.tier li { padding: 6px 0 6px 24px; position: relative; font-size: 0.92rem; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.tier .btn { margin-top: 22px; width: 100%; text-align: center; }
.price-note { margin-top: 26px; font-family: 'Courier Prime', monospace; font-size: 0.9rem; }
.compare {
  margin-top: 34px;
  border-left: 4px solid var(--red);
  background: var(--white);
  padding: 22px 26px;
  max-width: 620px;
}
.compare p { font-size: 1rem; }
.fine { margin-top: 20px; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 232px 1fr; gap: 40px; align-items: start; margin-top: 36px; }
@media (max-width: 700px) { .founder { grid-template-columns: 232px; } }
/* headshot framed like a postage stamp: white margin + perforated edges */
.stamp-photo {
  transform: rotate(-1.6deg);
  filter: drop-shadow(4px 5px 0 rgba(30,42,74,.14));
}
.stamp-photo img {
  --perf: 16px;
  background: #fff;
  padding: 14px;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask:
    radial-gradient(circle calc(var(--perf) / 4 + 0.5px), transparent 97%, #000 100%) calc(var(--perf) / -2) calc(var(--perf) / -2) / var(--perf) var(--perf) round,
    linear-gradient(#000 0 0) 50% 50% / calc(100% - var(--perf)) calc(100% - var(--perf)) no-repeat;
  mask:
    radial-gradient(circle calc(var(--perf) / 4 + 0.5px), transparent 97%, #000 100%) calc(var(--perf) / -2) calc(var(--perf) / -2) / var(--perf) var(--perf) round,
    linear-gradient(#000 0 0) 50% 50% / calc(100% - var(--perf)) calc(100% - var(--perf)) no-repeat;
}
.founder-note p { margin-bottom: 16px; max-width: 62ch; }
.founder-note .sig { font-family: 'Besley', serif; font-weight: 700; font-style: italic; font-size: 1.1rem; }

/* ---------- industries grid ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ind-grid { grid-template-columns: 1fr; } }
.ind {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.ind:hover { border-color: var(--red); }
.ind h3 { font-size: 1.05rem; }
.ind p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 8px; }
.ind .go { font-family: 'Courier Prime', monospace; font-size: 0.75rem; color: var(--red); margin-top: 12px; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--red); font-family: 'Courier Prime', monospace; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; max-width: 60ch; }

/* ---------- free postcard form ---------- */
.offer-band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; }
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } }
.offer-copy p { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }
.lead-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
}
.lead-form .form-inner { border: 3px dotted var(--line); padding: 26px; }
.lead-form label {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 16px 0 5px;
}
.lead-form label:first-of-type { margin-top: 0; }
.lead-form input, .lead-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.lead-form .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.lead-form .btn { width: 100%; margin-top: 22px; text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #B9C0D4; padding: 44px 0 34px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-foot .word { font-family: 'Besley', serif; font-weight: 900; color: #fff; font-size: 1.05rem; }
.site-foot a { color: #D7DCEA; text-decoration: none; font-size: 0.88rem; margin-right: 20px; }
.site-foot a:hover { color: #fff; }
.imb {
  font-family: 'Courier Prime', monospace;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: #7D89A8;
  margin-top: 26px;
  overflow: hidden;
  white-space: nowrap;
}
.foot-legal { font-size: 0.78rem; color: #7D89A8; margin-top: 8px; font-family: 'Courier Prime', monospace; }

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
