/* site.css — shared chrome for the shirt-pocket.com redesign (Direction B
 * "clear sky").  Page BODIES keep the design comps' exact inline styles for
 * fidelity; shared chrome and repeated visual patterns live here, while
 * genuinely page-specific one-offs stay inline. Tokens per the handoff. */

:root {
  --sp-font-body: system-ui, -apple-system, 'SF Pro Text', sans-serif;
  --sp-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --sp-font-mono: 'IBM Plex Mono', monospace;
  --sp-font-brand: 'Bricolage Grotesque', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f7fa;
  -webkit-font-smoothing: antialiased;
  font-family: var(--sp-font-body);
  color: #1d232e;
}

a { color: #2c6fa8; text-decoration: none; }
a:hover { color: #1e5285; }

.sp-page { max-width: 1200px; margin: 0 auto; }

/* --- Typography ------------------------------------------------------ */
.sp-font-body { font-family: var(--sp-font-body) !important; }
.sp-font-display { font-family: var(--sp-font-display) !important; }
.sp-font-mono { font-family: var(--sp-font-mono) !important; }
.sp-font-brand { font-family: var(--sp-font-brand) !important; }

.sp-page-eyebrow {
  font-family: var(--sp-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2c6fa8;
  margin-bottom: 12px;
}

.sp-page-title {
  font-family: var(--sp-font-display);
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.02;
}
.sp-page-title--about {
  font-size: 48px;
  margin-bottom: 16px;
}

/* --- Nav ------------------------------------------------------------- */
.sp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 46px; background: #fff;
  border-bottom: 1px solid rgba(30,40,60,0.07);
  position: sticky; top: 0; z-index: 20;
}
.sp-nav-logo {
  display: flex; align-items: center; gap: 11px; color: inherit;
}
.sp-nav-logo:hover { color: inherit; }
.sp-logo-mark { display: block; overflow: visible; }
.sp-brand--nav {
  font-family: var(--sp-font-brand);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.sp-nav-links {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; font-weight: 500; color: #3a4356;
}
.sp-nav-link,
.sp-nav-link:hover { color: #3a4356; }
.sp-nav-link.is-active,
.sp-nav-link.is-active:hover {
  color: #2c6fa8;
  font-weight: 600;
}
.sp-nav-download {
  padding: 9px 18px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(44,111,168,0.32);
}

/* --- Footer ---------------------------------------------------------- */
.sp-footer {
  padding: 40px 46px; border-top: 1px solid rgba(30,40,60,0.08);
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px; background: #fff;
}
.sp-footer-intro { max-width: 34ch; }
.sp-footer-brand {
  display: flex; align-items: center; gap: 9px;
}
.sp-brand--footer {
  font-family: var(--sp-font-brand);
  font-weight: 800;
  font-size: 17px;
}
.sp-footer-tagline {
  font-size: 13px; color: #8b93a4; margin-top: 8px;
}
.sp-footer-links {
  display: flex; gap: 52px; font-size: 13.5px; color: #4a5568;
}
.sp-footer-column {
  display: flex; flex-direction: column; gap: 9px;
}
.sp-footer-column strong { color: #1d232e; }
.sp-footer-column a,
.sp-footer-column a:hover { color: #4a5568; }
.sp-footer-copyright {
  padding: 18px 46px 34px;
  font-size: 12px;
  color: #9099aa;
  background: #fff;
}

/* --- Buttons ---------------------------------------------------------- */
.sp-btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2c6fa8, #1e5285);
  color: #fff !important;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.sp-btn-secondary {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(30,40,60,0.14);
  color: #1d232e !important;
  font-weight: 600;
  cursor: pointer;
}

/* --- Reusable cards -------------------------------------------------- */
.sp-feature-card {
  background: #fff;
  border: 1px solid rgba(30,40,60,0.08);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 1px 2px rgba(30,40,60,0.04), 0 8px 24px rgba(30,40,60,0.05);
}
.sp-feature-card-title {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 7px;
}
.sp-feature-card-copy {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}
.sp-content-card {
  background: #fff;
  border: 1px solid rgba(30,40,60,0.08);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(30,40,60,0.04), 0 10px 30px rgba(30,40,60,0.06);
}
.sp-content-card-title {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}
.sp-content-card-copy {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.55;
  margin: 0 0 16px;
}
.sp-product-card-title {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.sp-product-card-copy {
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0 0 12px;
}
.sp-product-card-link {
  font-size: 13px;
  font-weight: 600;
}
.sp-milestone-year {
  font-family: var(--sp-font-mono);
  color: #9fb8d4;
  font-size: 12.5px;
}
.sp-version-download-link {
  font-family: var(--sp-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.classic-security-warning > p {
  color: #5f470f !important;
  margin: 0 !important;
}
.classic-security-warning a {
  color: #765207;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Buy modal ------------------------------------------------------- */
.sp-purchase-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3a4356;
}
.sp-purchase-benefit-mark { color: #2f8c5c; }
.sp-upgrade-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6478;
  margin-bottom: 6px;
}

/* --- FAQ ------------------------------------------------------------- */
.sp-faq-answer {
  font-size: 15px;
  line-height: 1.62;
  color: #3a4356;
}
.sp-faq-answer p { margin: 0 0 11px; }
.sp-faq-answer p:last-child { margin-bottom: 0; }
.sp-faq-answer ul,
.sp-faq-answer ol { margin: 0 0 12px; padding-left: 20px; }
.sp-faq-answer li { margin: 0 0 6px; }
.sp-faq-answer strong { color: #1d232e; font-weight: 600; }
.sp-faq-answer code {
  font-family: var(--sp-font-mono);
  font-size: 13px;
  background: rgba(44,111,168,0.1);
  padding: 1px 6px;
  border-radius: 5px;
  color: #1e5285;
}
.sp-faq-answer a { font-weight: 500; }
.sp-faq-header {
  padding: 56px 44px 10px;
  max-width: 860px;
  margin: 0 auto;
}
.sp-faq-intro {
  font-size: 17px;
  color: #4a5568;
  margin: 0;
  line-height: 1.5;
}
.sp-faq-list {
  padding: 26px 44px 20px;
  max-width: 860px;
  margin: 0 auto;
}
.sp-faq-error {
  padding: 28px 30px;
  background: #fff;
  border: 1px solid rgba(224,101,90,0.4);
  border-radius: 16px;
  font-size: 14px;
  color: #4a5568;
}
.sp-faq-error code { font-family: var(--sp-font-mono); }
.sp-faq-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-faq-card {
  background: #fff;
  border: 1px solid rgba(30,40,60,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30,40,60,0.04);
}
.sp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
}
.sp-faq-question-title {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 18px;
  color: #1d232e;
}
.sp-faq-sign {
  font-family: var(--sp-font-mono);
  font-size: 20px;
  color: #2c6fa8;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.sp-faq-body { padding: 0 24px 22px; }
.sp-faq-contact {
  padding: 20px 44px 60px;
  max-width: 860px;
  margin: 0 auto;
}
.sp-faq-contact-card {
  background: #232b38;
  color: #e7edf4;
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sp-faq-contact-title {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 4px;
}
.sp-faq-contact-copy { font-size: 14.5px; color: #cdd7e3; }
.sp-faq-contact-button {
  background: #fff;
  color: #1e5285;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}
.sp-faq-contact-button:hover { color: #1e5285; }

/* --- Practices overlay ---------------------------------------------- */
.sp-practice {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.sp-practice--last { margin-bottom: 8px; }
.sp-practice-number {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(44,111,168,0.12);
  color: #1e5285;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-practice-title {
  font-family: var(--sp-font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
}
.sp-practice-copy {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 8px;
}
.sp-practice-copy--last { margin-bottom: 0; }

/* --- Retro theme (Hall of Fame paper/gold palette) -------------------
 * Opt-in via <body class="sp-retro"> (head.php $bodyClass). Recolors the
 * SHARED chrome + cards to the Hall of Fame scheme so a page can adopt that
 * palette without forking the partials; page-body inline styles are recolored
 * per page. Brand actions (.sp-btn-primary) intentionally stay blue, exactly
 * as the Hall of Fame page keeps its Download button blue. */
body.sp-retro { color: #232019; }
.sp-retro a { color: #946c0c; }
.sp-retro a:hover { color: #6f4f08; }

.sp-retro .sp-nav {
  background: #fbf7ee;
  border-bottom-color: rgba(199,154,30,0.3);
}
.sp-retro .sp-nav-links { color: #4a4436; }
.sp-retro .sp-nav-link,
.sp-retro .sp-nav-link:hover { color: #4a4436; }
.sp-retro .sp-nav-link.is-active,
.sp-retro .sp-nav-link.is-active:hover { color: #b8860b; }

.sp-retro .sp-footer {
  background: #fbf7ee;
  border-top-color: rgba(199,154,30,0.3);
}
.sp-retro .sp-footer-tagline { color: #8a8168; }
.sp-retro .sp-footer-links { color: #5b533f; }
.sp-retro .sp-footer-column strong { color: #232019; }
.sp-retro .sp-footer-column a,
.sp-retro .sp-footer-column a:hover { color: #5b533f; }
.sp-retro .sp-footer-copyright { background: #fbf7ee; color: #8a8168; }

.sp-retro .sp-feature-card,
.sp-retro .sp-content-card {
  background: #fbf7ee;
  border-color: rgba(199,154,30,0.35);
}
.sp-retro .sp-feature-card-copy,
.sp-retro .sp-content-card-copy { color: #5b533f; }

.sp-retro .sp-btn-secondary {
  background: #fbf7ee;
  border-color: rgba(199,154,30,0.4);
  color: #5b533f !important;
}

/* Retro FAQ (faq-classic.php): recolor the FAQ-specific elements to the
   Classic page's paper/gold palette; shared chrome is handled above.  Links
   inside answers already go gold via `.sp-retro a`. */
.sp-retro .sp-page-eyebrow { color: #946c0c; }
.sp-retro .sp-faq-intro { color: #5b533f; }
.sp-retro .sp-faq-card { background: #fbf7ee; border-color: rgba(199,154,30,0.35); }
.sp-retro .sp-faq-question-title { color: #232019; }
.sp-retro .sp-faq-sign { color: #b8860b; }
.sp-retro .sp-faq-answer { color: #5b533f; }
.sp-retro .sp-faq-answer strong { color: #232019; }
.sp-retro .sp-faq-answer code { background: rgba(199,154,30,0.14); color: #6f4f08; }
.sp-retro .sp-faq-contact-button { color: #946c0c; }
.sp-retro .sp-faq-contact-button:hover { color: #6f4f08; }
