/* ==========================================================================
   CoPilot Bookkeeping — shared site styles
   Design tokens and components shared across pages. Page-specific rules stay
   inline in each page's <style> block.
   ========================================================================== */

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

:root {
  --navy: #0B1F3A;
  --navy-mid: #162D4F;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #F9F5EF;
  --cream-dark: #EDE8DF;
  --text-dark: #0B1F3A;
  --text-mid: #3D5268;
  --text-muted: #6B8099;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   BUTTONS
   min-height 48px on every interactive control to meet mobile tap targets.
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  color: rgba(255,255,255,0.8);
  padding: 0.9rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-dark:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   FORM CONTROLS
   -------------------------------------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.form-group label .required { color: var(--gold); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B8099' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.95rem 2rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.form-submit svg { width: 18px; height: 18px; }

/* Trust line under a submit button: gold stars + Google rating. */
.form-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-mid);
  text-align: center;
}
.form-rating .form-rating-stars {
  color: var(--gold);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* Risk-reversal microcopy under a submit button. Sits with .form-rating. */
.form-microcopy {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   LANDING PAGE TEMPLATE
   Shared by /catch-up-bookkeeping and /bookkeeping-phoenix. No site nav by
   design — these pages carry paid traffic and must not leak clicks.
   -------------------------------------------------------------------------- */

/* Header: logo (not a link) + sticky call button */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 3rem;
  background: rgba(11, 31, 58, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.lp-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.lp-logo span { color: var(--gold); }
.lp-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1.35rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.lp-call:hover { background: var(--gold-light); }
.lp-call svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* Hero + form, side by side so the form sits above the fold on desktop */
.lp-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 3rem 4rem;
}
.lp-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.lp-hero-glow {
  position: absolute;
  top: -35%; right: -8%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 3.5rem;
  align-items: start;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.lp-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
}
.lp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.lp-hero h1 em { font-style: italic; color: var(--gold-light); }
.lp-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.lp-hero-points { list-style: none; }
.lp-hero-points li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.lp-hero-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.45rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

/* Form card */
.lp-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.9rem 1.75rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28);
  border: 1px solid rgba(201,168,76,0.25);
}
.lp-form-card h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.lp-form-card .lp-form-sub {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.lp-form-note {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
  line-height: 1.5;
}

/* Trust bar */
.lp-trust {
  background: var(--navy-mid);
  padding: 1.35rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.45;
}
.lp-trust-item strong { font-weight: 500; color: var(--white); }
.lp-trust-badge {
  width: 40px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.lp-trust-badge-ea {
  width: auto;
  height: 28px;
  background: #fff;
  padding: 4px 7px;
  border-radius: 6px;
}
.lp-trust-divider {
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.14);
}

/* Generic landing section */
.lp-section {
  padding: 4.5rem 3rem;
  max-width: 1080px;
  margin: 0 auto;
}
.lp-section-alt { background: var(--cream-dark); max-width: 100%; }
.lp-section-alt > .lp-section-inner { max-width: 1080px; margin: 0 auto; }
.lp-section-head { max-width: 640px; margin-bottom: 2.75rem; }
.lp-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.lp-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}
.lp-section-head p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  margin-top: 0.9rem;
}

/* Steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.lp-step {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1.9rem 1.6rem;
}
.lp-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.lp-step h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.lp-step p {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

/* Testimonials */
.lp-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.lp-review {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.lp-stars { display: flex; gap: 0.2rem; margin-bottom: 1rem; }
.lp-stars svg { width: 16px; height: 16px; fill: var(--gold); }
.lp-review-text {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1.4rem;
  flex: 1;
}
.lp-review-author { display: flex; align-items: center; gap: 0.7rem; }
.lp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-author-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.lp-author-source {
  display: block;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* FAQ */
.lp-faq { max-width: 780px; }
.lp-faq-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 1.5rem 0;
}
.lp-faq-item:first-of-type { border-top: 1px solid var(--cream-dark); }
.lp-faq-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}
.lp-faq-item p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
}

/* Face card — Blake's photo beside a short caption. Sits inside a section,
   above the content it introduces. Sized so it never dominates on mobile. */
.lp-face {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 430px;
  margin-bottom: 2.25rem;
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
}
.lp-face img {
  display: block;
  width: 108px;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
}
.lp-face-caption {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mid);
}
.lp-face-caption strong {
  display: block;
  font-weight: 500;
  color: var(--text-dark);
}

/* Repeating CTA block */
.lp-cta {
  background: var(--navy);
  padding: 3.25rem 3rem;
  text-align: center;
}
.lp-cta-inner { max-width: 680px; margin: 0 auto; }
.lp-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 0.85rem;
}
.lp-cta p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.75rem;
}
.lp-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Landing page footer — no outbound links */
.lp-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 2.25rem 3rem;
  text-align: center;
}
.lp-footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.lp-footer-logo span { color: var(--gold); }
.lp-footer p {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  max-width: 620px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   LANDING PAGE RESPONSIVE
   Below 1000px the form stacks under the hero copy. Hero copy is kept short
   enough that the form stays within one scroll on a phone.
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .lp-form-card { max-width: 520px; }
  .lp-steps, .lp-reviews { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .lp-header { padding: 0.75rem 1.1rem; }
  .lp-logo { font-size: 1.05rem; }
  .lp-call { padding: 0.6rem 0.9rem; font-size: 0.88rem; }
  .lp-hero { padding: 2.25rem 1.25rem 2.5rem; }
  .lp-sub { font-size: 1rem; margin-bottom: 1.25rem; }
  .lp-trust { padding: 1.25rem 1.25rem; gap: 1.25rem; flex-direction: column; align-items: flex-start; }
  .lp-trust-divider { display: none; }
  .lp-section { padding: 3rem 1.25rem; }
  .lp-cta { padding: 2.5rem 1.25rem; }
  .lp-cta-actions { flex-direction: column; align-items: stretch; }
  .lp-cta-actions .btn-primary,
  .lp-cta-actions .btn-secondary { width: 100%; }
  .lp-footer { padding: 2rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .lp-face { gap: 1rem; padding: 1rem; }
  .lp-face img { width: 88px; }
  .lp-face-caption { font-size: 0.88rem; }
}

/* --------------------------------------------------------------------------
   STICKY MOBILE CTA BAR
   Mobile only — display:none by default so it is fully absent on desktop and
   can never overlap the desktop form. Total height is 57px (56px tap target +
   1px top border), mirrored by the body padding below so the bar never covers
   the footer or the final CTA.

   z-index 90 sits above page content but below the sticky header (100). It
   cannot obscure the "How far behind are you?" select: that control lives in
   the form near the top of the page, its native picker is drawn by the OS
   above all page layers, and scroll-margin-bottom keeps a focused field clear
   of the bar when the browser scrolls it into view.
   -------------------------------------------------------------------------- */
.mobile-cta-bar { display: none; }

@media (max-width: 767px) {
  .mobile-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--navy);
    border-top: 1px solid rgba(201,168,76,0.45);
    box-shadow: 0 -4px 18px rgba(11,31,58,0.3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-cta-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 56px;
    padding: 0.5rem 0.75rem;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
  }
  .mobile-cta-quote { background: var(--gold); color: var(--navy); }
  .mobile-cta-call {
    background: var(--navy);
    color: var(--white);
    border-left: 1px solid rgba(201,168,76,0.35);
  }
  .mobile-cta-call svg {
    width: 17px; height: 17px;
    stroke: currentColor; fill: none; stroke-width: 2;
    flex-shrink: 0;
  }

  /* Room for the bar at the end of the page. */
  body { padding-bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }

  /* Keep a focused form control above the bar when scrolled into view. */
  .lp-form-card input,
  .lp-form-card select,
  .lp-form-card textarea,
  .lp-form-card .form-submit { scroll-margin-bottom: 76px; }
}
