/* ============================================================
   BIZVO MARKETING SITE — SHARED COMPONENTS
   Used on EVERY page: home, the 3 comparison pages, and the 3
   footer pages (privacy/security/contact). Page-specific sections
   (hero, stamp stage, pricing card, story band, etc.) live in
   home.css or a per-template stylesheet instead — don't add
   home-only rules here.
   Depends on: tokens.css (load before this file).
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* Paper grain — page background only, NEVER inside a card, NEVER in PDFs */
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16  0 0 0 0 0.14  0 0 0 0 0.11  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; margin: 0; }

a { color: var(--workshop-teal); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--workshop-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.small-print { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: var(--radius-card);
  padding: 14px 26px;
  cursor: pointer; text-decoration: none; text-align: center;
  border: none;
  transition: box-shadow .15s ease, transform .1s ease;
}
.btn-primary { background: var(--workshop-teal); color: var(--paper); }
.btn-primary:hover { box-shadow: var(--shadow-card); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--workshop-teal);
  color: var(--workshop-teal);
}
.btn-secondary:active { transform: scale(0.98); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
/* Display/list surfaces only — rotation is never applied to forms,
   comparison tables, or the reading pages (privacy/security/contact). */
.rot-a { transform: rotate(var(--rotation-a)); }
.rot-b { transform: rotate(var(--rotation-b)); }
.rot-c { transform: rotate(var(--rotation-c)); }

/* ---------- Tape accent ---------- */
.tape {
  position: absolute;
  width: 92px; height: 24px;
  background: rgba(217,164,65,0.62);
  box-shadow: 0 2px 3px rgba(43,38,32,0.15);
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 2;
}

/* ---------- Checkmark value lists (reused: hero, offline pillar, pricing) ---------- */
.value-list, .pillar-bullets, .included {
  list-style: none; padding: 0; margin: 0 0 22px;
}
.value-list li, .pillar-bullets li, .included li {
  font-size: 15.5px; color: #4d463c; margin-bottom: 10px;
  padding-left: 28px; position: relative; font-weight: 500;
}
.value-list li::before, .pillar-bullets li::before, .included li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--workshop-teal); font-weight: 700; font-size: 16px;
}

/* ============================================================
   NAV — identical on all 7 pages
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,231,211,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(43,38,32,0.09);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--content-max); margin: 0 auto;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-menu-links { display: flex; align-items: center; gap: 26px; }
.nav-links a, .nav-menu-links a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover, .nav-menu-links a:hover { color: var(--workshop-teal); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
/* Nav CTA variant — white text on workshop-teal (confirmed choice,
   the only place on the site that deviates from --paper button text) */
.nav .btn-primary { color: #FFFFFF; font-weight: 700; letter-spacing: 0.01em; }

/* ---------- Mobile nav: hamburger + drawer ----------
   Below 820px, .nav-menu-links (How it works/Pricing/FAQ/Compare) hides —
   this toggle + drawer is what replaces it. The primary CTA stays visible
   in the header at all times regardless of viewport; this only covers the
   secondary nav links. Every page includes this markup identically (see
   any page's <nav> block) and loads /assets/js/nav.js to drive it. */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;   /* real tap target, not just an icon-sized hitbox */
  background: transparent; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--paper-card);
  border-bottom: 1px solid rgba(43,38,32,0.09);
  padding: 4px 24px 12px;
}
.mobile-nav a {
  padding: 15px 4px;           /* comfortably over the 44px touch-target guideline with line-height */
  font-size: 16px; font-weight: 500; color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(43,38,32,0.08);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

@media (max-width: 820px) {
  .nav-menu-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 821px) {
  /* Guard against a stale .open class if the viewport is resized past the
     breakpoint without a reload (rotating a tablet, resizing a window). */
  .mobile-nav { display: none !important; }
}

/* ============================================================
   COMPARISON TABLE — a reading/data surface: FLAT, never rotated.
   Used on the home page's mini-comparison AND the 3 full
   comparison pages. Keep readable, not decorative.
   ============================================================ */
.compare-card { padding: 28px 26px 22px; transform: none; }
table.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.compare th, table.compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #EADFC5; }
table.compare th {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft);
}
table.compare td:last-child, table.compare th:last-child { text-align: right; }
table.compare tr.bizvo-row td { font-weight: 700; }
table.compare tr.bizvo-row .price-hero {
  font-family: var(--font-display); color: var(--workshop-teal); font-size: 17px;
}
table.compare tr:last-child td { border-bottom: none; }
.compare-smallprint { font-size: 11.5px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.5; }

/* Mobile: a 3-column table gets cramped fast on a phone. Below 640px, each
   row becomes its own stacked card — the first cell (the row's identity:
   a product name or a feature name, depending on which table this is)
   becomes a mini card header, and the remaining cells get a label pulled
   from a data-label attribute (set per-cell in the HTML, matching that
   column's header text). Tradeoff, disclosed rather than silently taken:
   ::before content isn't reliably announced by every screen reader, so
   this optimizes the common sighted-mobile-user case; the underlying
   table markup and reading order stay correct for assistive tech either
   way. Every table.compare instance (home page's mini table, all 3 full
   comparison pages) needs data-label on every cell except the first. */
@media (max-width: 640px) {
  table.compare, table.compare thead, table.compare tbody,
  table.compare th, table.compare td, table.compare tr { display: block; }
  table.compare thead { display: none; }
  table.compare tr {
    margin-bottom: 14px; border: 1px solid #EADFC5; border-radius: 4px;
    overflow: hidden;
  }
  table.compare tr.bizvo-row { border-color: var(--workshop-teal); border-width: 2px; }
  table.compare tr:last-child { margin-bottom: 0; }
  table.compare td {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-bottom: 1px solid #EADFC5;
    text-align: right; font-size: 14px;
  }
  table.compare td:last-child { border-bottom: none; }
  table.compare td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--ink-soft); text-align: left;
    padding-right: 12px;
  }
  table.compare td:first-child {
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    justify-content: flex-start; background: rgba(47,111,107,0.07);
  }
  table.compare td:first-child::before { content: none; }
}

/* ============================================================
   FAQ ACCORDION — reading surface: flat, no rotation.
   Used on the home page FAQ and each comparison page's mini-FAQ.
   ============================================================ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { padding: 0; margin-bottom: 14px; transform: none; }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 16.5px;
  padding: 20px 52px 20px 24px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 22px; color: var(--workshop-teal);
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin: 0; padding: 0 24px 22px; font-size: 15px; color: #4d463c; }

/* ============================================================
   GENERIC SECTION / HEADING RHYTHM — reused on every page
   ============================================================ */
.section { padding: var(--space-section) 0; }
@media (max-width: 700px) { .section { padding: var(--space-section-mobile) 0; } }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.01em; }

/* Reading-page body copy (privacy/security/contact + comparison prose) */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 40px 0 14px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; color: #4d463c; margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { font-size: 16px; color: #4d463c; margin-bottom: 8px; }
.prose strong { color: var(--ink); }

/* "Fair take" callout — used in comparison pages' "What [Competitor] does
   well" section. Flat, quietly bounded — a credibility device, not a warning. */
.fair-take {
  border-left: 3px solid var(--tape-amber);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}
.fair-take p { margin: 0; }

/* Inline TODO/placeholder marker — visible in dev, must be resolved before
   publish. Style makes unresolved placeholders impossible to miss in review. */
.todo-flag {
  display: inline-block;
  background: var(--overdue-tint); color: var(--overdue-text);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 3px; text-transform: uppercase;
}

/* ============================================================
   FOOTER — identical on all 7 pages
   ============================================================ */
footer { background: var(--ink); color: #B7AC97; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 32px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--paper); margin: 0 0 8px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: #8A7E6C;
  margin: 0 0 14px;
}
.footer-col a { display: block; color: #CFC4AC; text-decoration: none; font-size: 14px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(242,231,211,0.14); padding-top: 22px; font-size: 12.5px; color: #8A7E6C; }
