/* Palette + type inherited from moodybrands.co's own design system, with
   Pawtrail's own accent color layered on top (same pattern moodybrands.co
   uses for each brand card: shared green/serif skeleton, one accent each). */
:root {
  --bg: #F4F7F5;
  --card: #ffffff;
  --ink: #0D1A10;
  --muted: #5A7060;
  --line: #D4E0D8;
  --green-deep: #1B4D2E;
  --green-mid: #2E6B42;
  --green-light: #EBF2EE;
  --brand: #D97742;
  --brand-dark: #B85F2E;
  --good: #2E6B42;
  --bad: #B0483A;
  --warn: #9B6B1A;
  --display: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--display); font-weight: normal; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  background: var(--green-deep);
  color: #fff;
  flex-wrap: wrap;
}
.nav a { color: #eaf2ec; padding: 6px 10px; border-radius: 6px; }
.nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.nav .brand { font-family: var(--display); font-weight: normal; font-size: 1.25em; margin-right: 12px; color: #fff; }
.nav .spacer { flex: 1; }

.container { max-width: 960px; margin: 0 auto; padding: 20px; }
.portal-container { max-width: 640px; margin: 0 auto; padding: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

h1, h2, h3 { margin-top: 0; }
h1 { font-size: 1.6em; }
h2 { font-size: 1.25em; }

.muted { color: var(--muted); }
.balance { font-size: 2em; font-weight: 700; }
.balance.zero { color: var(--good); }
.balance.owed { color: var(--bad); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 0.95em; }
th { color: var(--muted); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.95em;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--line); color: var(--ink); }
.btn.small { padding: 4px 10px; font-size: 0.85em; }
.btn.danger { background: var(--bad); }
.btn.venmo { background: #3d95ce; }
.btn.venmo:hover { background: #2f7bab; }
.btn.cashapp { background: #00d54b; }
.btn.cashapp:hover { background: #00b83f; }

form.inline { display: inline; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9em; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=number], .field input[type=password], .field input[type=datetime-local],
.field select, .field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  background: #fff;
}
.field textarea { min-height: 70px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checkbox-row label { font-weight: 400; display: flex; align-items: center; gap: 6px; margin: 0; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge.scheduled { background: #e6eef7; color: #2f5f8a; }
.badge.in_progress { background: #fdf0d5; color: var(--warn); }
.badge.completed { background: #e4efe6; color: var(--good); }
.badge.canceled { background: #f2e5e2; color: var(--bad); }
.badge.pending, .badge.pending_payment { background: #fdf0d5; color: var(--warn); }
.badge.paid, .badge.paid_credit, .badge.paid_external { background: #e4efe6; color: var(--good); }
.badge.waived { background: #eae4f3; color: #6b4c9a; }

.banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.banner.good { background: #e4efe6; color: var(--good); }
.banner.warn { background: #fdf0d5; color: var(--warn); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.flash.success { background: #e4efe6; color: var(--good); }
.flash.error { background: #f2e5e2; color: var(--bad); }

.log-entry { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.log-entry:last-child { border-bottom: none; }
.log-icon { font-size: 1.3em; width: 28px; text-align: center; }
.log-time { font-size: 0.8em; color: var(--muted); }
.log-photo { max-width: 100%; border-radius: 8px; margin-top: 6px; display: block; }

.pet-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.pet-photo.large { width: 96px; height: 96px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .container, .portal-container { padding: 14px; }
}

.list-links a { display: block; padding: 4px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.token-box { font-family: monospace; background: var(--line); padding: 8px 10px; border-radius: 6px; word-break: break-all; font-size: 0.85em; }

/* landing page */
.landing { max-width: none; margin: 0; padding: 0; }
.eyebrow { display: block; font-size: 0.7em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 10px; }

.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 0; min-height: 520px; }
.hero-copy { padding: 4rem clamp(20px, 6vw, 5rem); }
.hero-copy h1 { font-size: clamp(2.1em, 4.5vw, 3.1em); line-height: 1.08; margin: 0 0 18px; }
h1 em, h2 em { font-style: italic; color: var(--green-deep); }
.hero-copy p.lead { font-size: 1.15em; color: var(--muted); max-width: 480px; margin: 0 0 28px; }
.hero-photo { height: 100%; min-height: 420px; background-size: cover; background-position: center; position: relative; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,26,16,0) 55%, rgba(13,26,16,0.55) 100%);
}
.hero-photo .credit {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  font-size: 0.7em; color: rgba(255,255,255,0.75);
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-photo { min-height: 260px; order: -1; }
  .hero-copy { padding: 2.5rem 20px; text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-copy .cta-row { justify-content: flex-start; }
@media (max-width: 860px) { .hero-copy .cta-row { justify-content: center; } }

.section { padding: 4rem clamp(20px, 5vw, 4rem); max-width: 1100px; margin: 0 auto; }
.section.tint { background: var(--card); }
.section-heading { text-align: center; margin: 0 0 36px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.services-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 16px; text-align: center; color: inherit; transition: border-color 0.15s, transform 0.15s;
}
.service-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.service-card .icon { font-size: 1.8em; margin-bottom: 10px; }
.service-card strong { display: block; font-size: 1.02em; margin-bottom: 4px; }
.service-card p { font-size: 0.85em; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}

.trust-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.trust-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background-size: cover; background-position: center; }
.trust-list { display: flex; flex-direction: column; gap: 22px; }
.trust-item { display: flex; gap: 14px; }
.trust-item .icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--green-light); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center; font-size: 1.2em;
}
.trust-item strong { display: block; margin-bottom: 3px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.92em; }
@media (max-width: 860px) {
  .trust-split { grid-template-columns: 1fr; gap: 2rem; }
  .services-row { grid-template-columns: repeat(2, 1fr); }
}

.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3em; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

.landing-form { max-width: 480px; margin: 0 auto; }
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.75); padding: 3rem 20px 1.5rem; margin-top: auto; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.footer-brand .site-logo { color: #fff; }
.footer-brand p { margin: 8px 0 0; font-size: 0.85em; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.75em; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin: 0 0 4px;
}
.footer-col a { color: rgba(255,255,255,0.85); font-size: 0.92em; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  max-width: 1140px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.78em; opacity: 0.6;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; gap: 4rem; }
}
@media (max-width: 720px) {
  .steps, .services-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .steps, .services-row { grid-template-columns: 1fr; }
}

/* marketing site header — sticky, hamburger below 1024px (mirrors wagwalking.com's
   own real breakpoint for that switch, confirmed from their compiled CSS) */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header-inner { max-width: 1140px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
@media (min-width: 768px) { .site-header-inner { height: 64px; } }
.site-logo { font-family: var(--display); font-size: 1.35em; color: var(--green-deep); flex-shrink: 0; }
.site-nav { display: none; gap: 2px; }
.site-nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 0.92em; font-weight: 600; }
.site-nav a:hover { background: var(--bg); text-decoration: none; }
.site-header-cta { display: none; align-items: center; gap: 16px; margin-left: auto; }
.header-login { font-size: 0.9em; color: var(--muted); }
@media (min-width: 1024px) {
  .site-nav { display: flex; flex: 1; margin-left: 12px; }
  .site-header-cta { display: flex; }
}

.nav-toggle-input { display: none; }
.nav-toggle-btn { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 10px 6px; }
.nav-toggle-btn span { width: 22px; height: 2px; background: var(--ink); display: block; }
@media (min-width: 1024px) { .nav-toggle-btn { display: none; } }

.mobile-panel { display: none; flex-direction: column; border-top: 1px solid var(--line); background: #fff; }
.mobile-panel a { padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
#nav-toggle:checked ~ .site-header .mobile-panel { display: flex; }
@media (min-width: 1024px) { .mobile-panel { display: none !important; } }
