/* ═══════════════════════════════════════════════════════════════════
   PROCANVASSER MARKETING SITE — "Civic Print"
   Standalone static site. No build step, no external fonts/CDNs.
   Palette, faces and grain are lifted from the product's mk-surface
   token block (frontend/src/app.css) so this site and the app read as
   one brand. Changing the look means editing the variables below.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ── Surfaces — four-step ladder ─────────────────────────────── */
  --panel:  #f9f6ee;   /* raised: cards, placards */
  --paper:  #ece8da;   /* page ground */
  --sunken: #dfd9c6;   /* recessed: facts strip, side panels */
  --hair:   #c5bea7;   /* hairline rules */

  /* ── Ink — cool, complements the warm ground ─────────────────── */
  --ink:   #131b2f;
  --ink-2: #3a4460;
  --ink-3: #555d75;
  --rule:  #131b2f;

  /* ── Accent — brand teal ──────────────────────────────────────── */
  --accent:        #00674a;
  --accent-dark:   #005238;
  --accent-bright: #0fba88;

  --danger: #c02026;

  --font-display: Rockwell, 'Iowan Old Style', 'Roboto Slab', 'Bookman Old Style', Georgia, serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)' opacity='0.045'/%3E%3C/svg%3E");
}

/* Dark-mode is intentionally NOT auto-applied: this is a print-styled
   brand surface (ivory paper, deep ink) that is meant to look the same
   regardless of OS theme, same as the product's own marketing pages. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--ink);
  color-scheme: light;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  background-color: var(--paper);
  background-image: var(--grain);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.nav.nav-solid,
.nav.nav-static { border-bottom-color: var(--hair); }
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark-pin { flex: none; }
.wordmark-text { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: .01em; }
.wordmark-text em { font-style: normal; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-cta {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  white-space: nowrap;
}

.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 44px; height: 44px; }
.toggle-bar { display: block; position: relative; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }
.toggle-bar::before, .toggle-bar::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.toggle-bar::before { top: -7px; }
.toggle-bar::after { top: 7px; }
.toggle-bar.open { background: transparent; }
.toggle-bar.open::before { transform: translateY(7px) rotate(45deg); }
.toggle-bar.open::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; padding: 8px 28px 20px;
  border-top: 1px solid var(--hair); background: var(--paper);
}
.mobile-nav.open { display: flex; }
.mobile-link {
  background: none; border: 0; text-align: left; padding: 14px 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--hair);
}
.mobile-divider { height: 6px; }
.mobile-cta {
  display: block; margin-top: 14px; padding: 15px; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 32px; min-height: 48px;
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-accent:disabled { opacity: .55; cursor: not-allowed; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--panel); }
.btn-full { width: 100%; }

/* ── Hero placard ──────────────────────────────────────────────── */
.hero { padding: 34px 0 0; }
.placard { border: 4px solid var(--ink); background: var(--panel); padding: 46px 44px 44px; text-align: center; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.placard h1 {
  margin: 18px 0 0; font-family: var(--font-display);
  font-size: clamp(34px, 5.6vw, 72px); line-height: .98; letter-spacing: -.03em; font-weight: 700;
}
.placard h1 span { color: var(--accent); }
.hero-sub {
  margin: 24px auto 0; max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 25px); line-height: 1.45; font-weight: 700;
}
.fine { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* ── Trust strip ───────────────────────────────────────────────── */
.trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.trust li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
}
.trust li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ── Hard facts strip ──────────────────────────────────────────── */
.facts {
  background: var(--sunken);
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 0;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.fact { padding: 18px 22px 20px; border-right: 1px solid var(--hair); text-align: center; }
.fact:last-child { border-right: 0; }
.fact dt { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.fact dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 76px 0 0; }
.section-head { margin-bottom: 34px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); line-height: 1.06; letter-spacing: -.022em; font-weight: 700; }
.section-sub { margin: 14px 0 0; font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }

/* ── Pain blocks — one per buyer question ─────────────────────── */
.pain { border-top: 4px solid var(--ink); padding: 44px 0 40px; }
.mark { width: 26px; height: 5px; background: var(--accent); margin-bottom: 16px; }
.q {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.06;
  font-size: clamp(24px, 3.4vw, 40px); margin: 0; color: var(--ink);
}
.now { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
.now b { color: var(--ink); }
.ans {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; margin-top: 30px;
  border: 2px solid var(--ink); background: var(--panel);
}
.ans .body { padding: 26px 28px 28px; }
.ans .body p { margin: 0; font-size: 15px; line-height: 1.72; color: var(--ink-2); }
.ans .body p + p { margin-top: 12px; }
.ans .side { padding: 26px 24px; border-left: 1px solid var(--hair); background: var(--sunken); }
.ans .side dt { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.ans .side dd { margin: 5px 0 15px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.ans .side dd:last-child { margin-bottom: 0; }

/* ── Proof line ────────────────────────────────────────────────── */
.proof {
  margin: 40px 0 0; padding: 22px 26px; border: 2px solid var(--ink); background: var(--sunken);
  font-family: var(--font-display); font-size: clamp(15px, 1.6vw, 19px); font-weight: 700;
  line-height: 1.5; color: var(--ink);
}
.proof em { font-style: normal; color: var(--accent); }

/* ── Steps ─────────────────────────────────────────────────────── */
.steps { border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); }
.step { padding: 28px 30px 32px 0; border-bottom: 1px solid var(--hair); }
.step + .step { padding-left: 30px; border-left: 1px solid var(--hair); }
.step-num { font-family: var(--font-display); font-size: 46px; line-height: .9; font-weight: 700; color: var(--accent); }
.step-body h3 { margin: 10px 0 7px; font-family: var(--font-display); font-size: 23px; font-weight: 700; letter-spacing: -.012em; }
.step-body p { margin: 0; font-size: 14.5px; line-height: 1.68; color: var(--ink-2); }

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq { border-top: 3px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 2px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 20px); font-weight: 700; color: var(--ink);
}
.faq-q-mark { flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; color: var(--ink); transition: transform .18s ease; }
.faq-item.open .faq-q-mark { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-a { margin: 0; padding: 0 2px 22px; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 68ch; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── CTA ───────────────────────────────────────────────────────── */
.section-cta { padding-top: 76px; padding-bottom: 0; }
.cta h2 { margin: 16px 0 14px; font-family: var(--font-display); font-size: clamp(28px, 4.2vw, 50px); line-height: 1.05; letter-spacing: -.022em; font-weight: 700; }
.cta p { margin: 0 auto; font-size: clamp(15.5px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 48ch; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer { margin-top: 76px; border-top: 3px solid var(--ink); padding: 44px 0 34px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.footer-tagline { margin: 14px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.footer-col h3 { margin: 0 0 13px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.footer-col a, .footer-btn {
  display: block; background: none; border: 0; padding: 7px 0; cursor: pointer;
  min-height: 24px; font-family: inherit; font-size: 14px; color: var(--ink); text-decoration: none; text-align: left;
}
.footer-col a:hover, .footer-btn:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--hair);
  font-size: 13px; color: var(--ink-3);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-block; min-height: 24px; padding: 2px 0; color: var(--ink-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 18px; padding-bottom: 40px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.legal-links a:hover { color: var(--accent); }

/* ── Form controls (trial page) ───────────────────────────────── */
.panel { display: grid; grid-template-columns: 1.5fr 1fr; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.form-side { padding: 34px 34px 36px; }
.info-side { padding: 34px 30px 36px; border-left: 1px solid var(--hair); background-color: var(--sunken); }
.info-side h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.012em; }
.checklist {
  margin: 0; padding: 0; list-style: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 44px, var(--hair) 44px 45px);
}
.checklist li { position: relative; min-height: 45px; padding: 12px 0 12px 34px; display: flex; align-items: center; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 50%; margin-top: -2px; width: 20px; height: 4px; background: var(--accent); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; min-height: 46px;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23131b2f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:disabled, .field textarea:disabled, .field select:disabled { opacity: .6; }
.form-error { padding: 12px 14px; margin-bottom: 16px; background: var(--danger); color: #fff; font-size: 13.5px; font-weight: 700; }
.form-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); text-align: center; }
.success .check { width: 62px; height: 62px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--accent); color: var(--accent); font-size: 28px; }
.centered { text-align: center; }
.lede { margin: 22px auto 0; max-width: 46ch; font-family: var(--font-display); font-size: clamp(16px, 1.9vw, 24px); line-height: 1.45; font-weight: 700; }

/* ── Legal pages ───────────────────────────────────────────────── */
.legal-main { padding: 40px 0 60px; }
.legal-doc { max-width: 780px; margin: 0 auto; }
.legal-doc .placard { text-align: left; padding: 36px 40px; margin-bottom: 40px; }
.legal-doc .placard h1 { font-size: clamp(28px, 4.6vw, 44px); }
.legal-doc .meta { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.legal-doc section { margin-bottom: 30px; }
.legal-doc h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; padding-top: 20px; border-top: 1px solid var(--hair); }
.legal-doc section:first-of-type h2 { border-top: 0; padding-top: 0; }
.legal-doc h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin: 18px 0 8px; }
.legal-doc p { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal-doc li { font-size: 15px; line-height: 1.75; color: var(--ink-2); margin-bottom: 6px; }
.legal-doc a { color: var(--accent); text-decoration: underline; }
.legal-doc strong { color: var(--ink); }
.legal-footnote { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--ink-3); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .panel { grid-template-columns: 1fr; }
  .info-side { border-left: 0; border-top: 2px solid var(--ink); }
}

@media (max-width: 820px) {
  .ans { grid-template-columns: 1fr; }
  .ans .side { border-left: 0; border-top: 2px solid var(--ink); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .wrap, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 20px; }
  .placard { padding: 30px 22px 30px; border-width: 3px; }
  .legal-doc .placard { padding: 26px 20px; }
  .section { padding-top: 54px; }
  .section-head { margin-bottom: 26px; }
  .pain { padding: 34px 0 32px; }
  .ans { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 22px 0; }
  .step + .step { padding-left: 0; border-left: 0; }
  .step-body h3 { margin: 0 0 7px; }
  .step-num { font-size: 32px; }
  .panel { border-width: 3px; }
  .form-side, .info-side { padding: 26px 20px 28px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .btn { width: 100%; }
  .nav-cta-long { display: none; }
}

@media (max-width: 340px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--hair); }
  .fact:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
  .fact { padding: 14px 16px 16px; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .wordmark { justify-content: center; }
  .footer-col a, .footer-btn { text-align: center; width: 100%; }
  .footer-bottom { justify-content: center; text-align: center; gap: 6px; }
  .footer-bottom p { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Contact modal ─────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(16, 24, 22, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  position: relative;
  background: var(--paper, #f7f4ea);
  border: 2px solid var(--ink, #101816);
  max-width: 480px; width: 100%;
  max-height: 90dvh; overflow-y: auto;
  padding: 36px 32px 28px;
}
.modal h2 { margin: 6px 0 8px; font-size: 26px; }
.modal-sub { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink-2); padding: 6px;
}
.modal-close:hover { color: var(--ink); }
.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.link-btn:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .modal { padding: 28px 20px 22px; }
}
.modal-backdrop[hidden] { display: none; }
