/* ============================================================
   The Small Business Growth Engine — shared public-site styles
   Used by: landing page (footer + mobile menu only), About,
   Contact, Terms, Privacy, Refund/Cancellation, Checkout.
   The demo platform does NOT load this file.
   ============================================================ */

:root {
  --pg-green: #4CAF3A;
  --pg-green-dark: #0F3D2E;
  --pg-orange: #F5A623;
  --pg-ink: #0F3D2E;
  --pg-ink-soft: #46564E;
  --pg-line: #E5E8E0;
  --pg-cream: #F7F6F2;
  --pg-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pwrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Quiet mouse focus, visible keyboard focus */
.psite :focus { outline: none; }
.psite :focus-visible { outline: 2px solid var(--pg-green-dark); outline-offset: 2px; }

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

/* ---------- Base for standalone public pages ---------- */
.psite {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--pg-ink);
  background: #fff;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.psite h1, .psite h2, .psite h3 { font-family: var(--pg-display); letter-spacing: -0.015em; line-height: 1.15; }
.psite img { max-width: 100%; display: block; }

/* ---------- Shared public header ---------- */
.ph { background: #fff; border-bottom: 1px solid var(--pg-line); position: sticky; top: 0; z-index: 50; }
.phnav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.ph-logo img { height: 40px; width: auto; }
.ph-actions { display: none; align-items: center; gap: 12px; }
.ph-login {
  color: var(--pg-ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 4px;
}
.ph-login:hover { color: var(--pg-ink); text-decoration: underline; text-underline-offset: 3px; }
.ph-mobile { display: flex; align-items: center; gap: 8px; }
.menu-btn {
  background: #fff;
  border: 1.5px solid var(--pg-line);
  border-radius: 8px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--pg-ink);
}
.menu-btn:hover { border-color: var(--pg-ink-soft); }
.menu-btn[aria-expanded="true"] { background: var(--pg-cream); }
.mobile-menu {
  border-top: 1px solid var(--pg-line);
  background: #fff;
  display: grid;
  padding: 6px 20px 12px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .mm-link {
  padding: 12px 4px;
  text-decoration: none;
  color: var(--pg-ink);
  font-size: 16px;
  border-bottom: 1px solid var(--pg-line);
}
.mobile-menu .mm-link:last-child { border-bottom: none; }
.mobile-menu .mm-quiet { color: var(--pg-ink-soft); font-size: 14.5px; }
@media (min-width: 760px) {
  .ph-actions { display: flex; }
  .ph-mobile { display: none; }
  .mobile-menu { display: none !important; }
}

/* Brand pill buttons (match the landing page) */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pg-orange);
  color: var(--pg-green-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
  font-family: inherit;
}
.pbtn:hover { background: #FFB84D; }
.pbtn.green { background: var(--pg-green); color: #fff; }
.pbtn.green:hover { background: var(--pg-green-dark); }
.pbtn.ghost { background: #fff; color: var(--pg-green-dark); border: 1.5px solid var(--pg-line); }
.pbtn.ghost:hover { background: var(--pg-cream); }
.pbtn.small { padding: 8px 16px; font-size: 14px; }
.pbtn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Content pages (About, Contact, policies) ---------- */
.ppage { padding: 40px 0 72px; }
.ppage-head { max-width: 740px; margin: 0 auto 8px; padding: 0 20px; }
.ppage-head h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 8px; }
.ppage-head .plede { font-size: 17px; color: var(--pg-ink-soft); margin: 0; max-width: 58ch; }
.ppage-head .pmeta { font-size: 13px; color: var(--pg-ink-soft); margin: 14px 0 0; }
.prose { max-width: 740px; margin: 0 auto; padding: 0 20px; font-size: 16px; }
.prose > hr, .ppage-head + .prose::before { content: none; }
.prose h2 {
  font-size: 21px;
  margin: 40px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--pg-line);
}
.prose h3 { font-size: 16.5px; margin: 24px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--pg-green-dark); font-weight: 600; text-underline-offset: 3px; }
.prose .tbc { color: var(--pg-ink-soft); font-style: italic; }
.pindex {
  max-width: 740px; margin: 20px auto 0; padding: 0 20px;
  font-size: 14px;
}
.pindex a { color: var(--pg-ink-soft); margin-right: 14px; text-underline-offset: 3px; display: inline-block; padding: 2px 0; }
.pindex a:hover { color: var(--pg-ink); }
.pcta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* ---------- Shared footer ---------- */
.pfooter {
  background: var(--pg-green-dark);
  color: rgba(255, 255, 255, .8);
  font-size: 13.5px;
  padding: 40px 0 28px;
  text-align: left;
  margin-top: 0;
}
.pf-cols { display: grid; gap: 26px; grid-template-columns: 1fr; }
.pf-col h4 {
  font-family: var(--pg-display);
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.pf-col a {
  display: block;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  padding: 4px 0;
}
.pf-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pf-biz {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin-top: 26px;
  padding-top: 18px;
  display: grid;
  gap: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
}
.pf-biz a { color: rgba(255, 255, 255, .85); }
.pf-copy { margin-top: 16px; color: rgba(255, 255, 255, .45); font-size: 12.5px; }
@media (min-width: 700px) {
  .pf-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Checkout / registration ---------- */
.co-header { border-bottom: 1px solid var(--pg-line); background: #fff; }
.co-hwrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.co-hleft { display: flex; align-items: center; gap: 14px; min-width: 0; }
.co-hleft img { height: 38px; width: auto; }
.co-htitle { font-family: var(--pg-display); font-weight: 700; font-size: 16px; border-left: 1px solid var(--pg-line); padding-left: 14px; }
.co-back { color: var(--pg-ink-soft); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
@media (max-width: 439px) { .co-htitle { display: none; } }
.co-back:hover { color: var(--pg-ink); text-decoration: underline; text-underline-offset: 3px; }

.co-main { background: var(--pg-cream); padding: 34px 0 64px; }
.co-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 860px) {
  .co-grid { grid-template-columns: 1.15fr .85fr; gap: 44px; }
  .co-summary { order: 2; position: sticky; top: 24px; }
  .co-form-col { order: 1; }
}

.co-notice {
  background: #fff;
  border: 1.5px solid var(--pg-green-dark);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.co-notice strong { color: var(--pg-green-dark); }

.co-summary {
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  padding: 22px;
}
.co-summary h2 { font-size: 17px; margin: 0 0 4px; }
.co-plan-name { font-size: 13.5px; color: var(--pg-ink-soft); margin: 0; }
.co-price { font-family: var(--pg-display); font-size: 38px; font-weight: 800; margin: 10px 0 0; line-height: 1; }
.co-price small { font-size: 15px; font-weight: 600; color: var(--pg-ink-soft); }
.co-price-sub { font-size: 12.5px; color: var(--pg-ink-soft); margin: 4px 0 0; }
.co-divider { border: none; border-top: 1px solid var(--pg-line); margin: 16px 0; }
.co-summary ul { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 7px; }
.co-summary li { display: flex; gap: 9px; align-items: baseline; }
.co-summary .tick { color: var(--pg-green); font-weight: 800; }
.co-terms-note { font-size: 13px; color: var(--pg-ink-soft); margin: 0; }
.co-due {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 700; font-size: 15px;
}
.co-due .r0 { font-family: var(--pg-display); font-size: 22px; color: var(--pg-green-dark); }

.co-form-col h1 { font-size: clamp(26px, 4.5vw, 32px); margin: 0 0 6px; }
.co-sub { color: var(--pg-ink-soft); font-size: 15px; margin: 0 0 22px; max-width: 56ch; }
.co-form { display: grid; gap: 16px; }
.co-field { display: grid; gap: 6px; }
.co-field label { font-size: 13.5px; font-weight: 700; }
.co-field .hint { font-weight: 400; color: var(--pg-ink-soft); }
.co-field input {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid #D7DCD4;
  border-radius: 8px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.co-field input[aria-invalid="true"] { border-color: #C6302B; }
.co-err { font-size: 12.5px; color: #C6302B; font-weight: 600; display: none; }
.co-field.invalid .co-err { display: block; }
.co-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.co-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--pg-green-dark); }
.co-actions { display: grid; gap: 10px; margin-top: 4px; }
.co-alt { font-size: 13px; color: var(--pg-ink-soft); text-align: center; }
.co-alt a { color: var(--pg-green-dark); font-weight: 600; }

.co-result {
  background: #fff;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  padding: 28px;
  display: none;
}
.co-result h2 { font-size: 24px; margin: 0 0 8px; }
.co-result p { font-size: 15px; margin: 0 0 12px; }
.co-result ol { font-size: 15px; padding-left: 20px; margin: 0 0 16px; display: grid; gap: 6px; }
.co-error-box {
  display: none;
  border: 1.5px solid #E5B9B7;
  background: #FBEAE9;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
}
