/* Pintender site styles. Mobile first. Colors checked for WCAG AA. */
:root {
  --ink: #121417;
  --muted: #3a424e;
  --bg: #ffffff;
  --bg-2: #f2f3f5;
  --line: #5c6570;
  --line-soft: #c5c9d0;
  --btn: #121417;
  --btn-text: #ffffff;
  --link: #0a4c8c;
  --focus: #0a4c8c;
  --ok: #145c32;
  --err: #8b1a1a;
  --header-h: 64px;
  --sans: "IBM Plex Sans", "Source Sans Pro", "Segoe UI", sans-serif;
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 40;
  background: #fff; color: var(--ink);
  padding: 8px 12px; font-weight: 600;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
  margin-right: auto;
}
.logo img, .logo svg { display: block; width: 28px; height: 28px; }
.nav {
  display: none;
  align-items: center;
  gap: 20px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons. .nav a.btn must beat .nav a color (the old contrast bug). */
.btn,
a.btn,
.nav a.btn,
button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--btn-text) !important;
  text-decoration: none; border: 2px solid var(--btn);
  border-radius: 4px;
  padding: 10px 16px;
  min-height: 44px;
  font: 600 0.95rem/1.2 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover,
a.btn:hover,
.nav a.btn:hover {
  background: #000; border-color: #000; color: #fff !important;
  text-decoration: none;
}
.btn-secondary,
a.btn-secondary {
  background: #fff; color: var(--ink) !important;
  border: 2px solid var(--ink);
}
.btn-secondary:hover,
a.btn-secondary:hover {
  background: var(--bg-2); color: var(--ink) !important; border-color: #000;
}
.header-cta { margin-left: 4px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: 4px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 4px;
  font-size: 1.2rem; cursor: pointer;
}

@media (min-width: 880px) {
  .nav, .legal-nav { display: flex; }
  .nav-toggle { display: none; }
  .site-header .wrap { gap: 20px; }
  .logo { margin-right: 0; }
  .nav, .legal-nav { margin-left: auto; }
  .header-cta { margin-left: 8px; }
}
@media (max-width: 879px) {
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: #fff; border-bottom: 1px solid var(--line-soft);
    padding: 12px 16px 20px; gap: 4px;
  }
  .nav.open a { padding: 12px 8px; min-height: 44px; }
  .nav.open a.btn { margin-top: 8px; }
}

/* Hero */
.hero { padding: 0 0 48px; }
.hero-grid { display: grid; gap: 20px; }
.hero-photo { order: -1; margin: 0; }
@media (max-width: 879px) {
  .hero-photo {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}
.hero-photo img {
  width: 100%; height: auto;
  object-fit: cover; max-height: 360px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 20ch;
}
.hero .lede { margin: 0 0 20px; max-width: 38rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.fine { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 40rem; }
.photo-credit {
  margin: 8px 16px 0;
  font-size: 0.8rem; color: var(--muted);
}
@media (min-width: 880px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
  }
  .hero-photo { order: 0; }
  .hero-photo img { max-height: none; }
  .photo-credit { margin: 8px 0 0; }
}

/* Photo strip */
.trades {
  background: var(--bg-2);
  padding: 48px 0;
}
.trades h2 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -0.02em; }
.trades .intro { margin: 0 0 24px; max-width: 40rem; }
.photo-row {
  display: grid;
  gap: 16px;
}
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-row figcaption {
  margin-top: 8px; font-size: 0.85rem; color: var(--muted);
}
@media (min-width: 700px) {
  .photo-row { grid-template-columns: 1fr 1fr 1fr; }
}

/* Work list with photo */
.work { padding: 56px 0; }
.work h2 { margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -0.02em; }
.work .intro { margin: 0 0 28px; max-width: 40rem; }
.work-grid { display: grid; gap: 28px; }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.work-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.work-list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.work-list p { margin: 0; color: var(--ink); }
.work figure { margin: 0; }
.work figure img { width: 100%; object-fit: cover; }
.work figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 880px) {
  .work-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
}

/* Example graphics */
.example { background: var(--bg-2); padding: 56px 0; }
.example h2 { margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -0.02em; }
.example .intro { margin: 0 0 20px; max-width: 44rem; }
.example figure { margin: 0; }
.example img { width: 100%; background: #fff; }
.caption-flag {
  display: inline-block;
  background: #111; color: #F5C518;
  font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 4px 8px; margin-bottom: 8px;
}
.example figcaption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 879px) {
  .example picture img { aspect-ratio: auto; height: auto; }
}

.split-example {
  display: grid; gap: 32px;
}
@media (min-width: 880px) {
  .split-example { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

/* Pricing */
.pricing { padding: 56px 0; }
.pricing h2 { margin: 0 0 8px; font-size: 1.7rem; }
.price-box {
  max-width: 36rem;
  margin-top: 24px;
  padding: 24px 0 0;
  border-top: 4px solid var(--ink);
}
.amount {
  margin: 0;
  font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.03em;
}
.amount span { font-size: 1.15rem; font-weight: 500; }
.price-box ul {
  margin: 16px 0 24px; padding: 0 0 0 1.15rem;
}
.price-box li { margin: 0 0 8px; }
.price-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.price-note { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }

/* How */
.how { background: var(--bg-2); padding: 56px 0; }
.how h2 { margin: 0 0 8px; font-size: 1.7rem; }
.how .intro { margin: 0 0 24px; max-width: 40rem; }
.how-grid { display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 12px; align-items: start; }
.step .num {
  font-weight: 700; font-size: 1.25rem; line-height: 1.2;
}
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; }
@media (min-width: 800px) {
  .how-layout { display: grid; grid-template-columns: 1fr 0.7fr; gap: 48px; align-items: start; }
}

/* FAQ */
.faq { padding: 56px 0; }
.faq h2 { margin: 0 0 20px; font-size: 1.7rem; }
.faq details {
  border-top: 1px solid var(--line-soft);
  padding: 14px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; font-weight: 700; }
.faq details[open] summary::before { content: "– "; }
.faq details p { margin: 10px 0 0; max-width: 42rem; }

/* Form */
.audit { background: var(--bg-2); padding: 56px 0 72px; }
.audit h2 { margin: 0 0 8px; font-size: 1.7rem; }
.audit .intro { margin: 0 0 24px; max-width: 40rem; }
form {
  display: grid;
  gap: 14px 16px;
  max-width: 720px;
}
@media (min-width: 640px) {
  form { grid-template-columns: 1fr 1fr; }
  label.full, .full, .form-status { grid-column: 1 / -1; }
}
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink); background: #fff;
  border: 2px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink);
}
.form-status { margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--err); font-weight: 600; }

/* Footer */
footer {
  background: var(--ink); color: #fff;
  padding: 36px 0;
  font-size: 0.95rem;
}
footer a { color: #fff; }
footer a:hover { color: #fff; }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
@media (min-width: 700px) {
  footer .wrap {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  }
}

/* Legal / thanks */
.legal { padding: 36px 0 64px; }
.legal h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -0.02em; }
.legal h2 { margin: 28px 0 8px; font-size: 1.25rem; }
.legal p, .legal li { max-width: 44rem; }
.draft-banner {
  background: #fff6d6; border: 2px solid #6b5420; color: #3a2e10;
  padding: 12px 14px; margin: 16px 0;
  font-weight: 500;
}

@media (min-width: 880px) {
  body { font-size: 1.125rem; }
  .work, .example, .pricing, .how, .faq, .audit, .trades { padding-top: 72px; padding-bottom: 72px; }
}

.maps { padding: 48px 0; }
.maps-grid { display: grid; gap: 28px; align-items: center; }
.maps figure { margin: 0; }
.maps img {
  width: 100%; max-height: 420px;
  object-fit: cover; object-position: center;
}
.maps figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 880px) {
  .maps { padding: 64px 0; }
  .maps-grid { grid-template-columns: 0.7fr 1.1fr; gap: 48px; }
  .maps img { max-height: 460px; }
}
.photo-row figure:nth-child(3) img { object-position: 50% 80%; }
.legal-nav { display: none; }
@media (min-width: 880px) {
  .legal-nav { display: flex; }
}
