/* Lead Dog Client Portal — Standalone CSS (no build step) */

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #374151; background: #fff; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Typography ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700;800&display=swap');

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.1; color: #072C42; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { line-height: 1.7; }

/* ── Colors ── */
:root {
  --navy: #072C42;
  --navy-800: #0E5580;
  --brand: #1B9DD9;
  --brand-light: #48B4E4;
  --brand-lighter: #E4F4FB;
  --ink-700: #374151;
  --ink-500: #6B7280;
  --ink-300: #CBD5E1;
  --surface: #F6F8FA;
  --white: #fff;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.min-h-screen { min-height: 100vh; }
.flex-grow { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Grid ── */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:items-center { align-items: center; }
}

/* ── Spacing ── */
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; } .mb-8 { margin-bottom: 2rem; }
.mr-1 { margin-right: 0.25rem; } .ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-3 { padding-top: 0.75rem; } .pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; } .pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pb-8 { padding-bottom: 2rem; } .pb-10 { padding-bottom: 2.5rem; }
@media (min-width: 768px) {
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:flex { display: flex; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:mt-0 { margin-top: 0; }
}
@media (min-width: 1024px) {
  .lg\:mb-0 { margin-bottom: 0; }
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .lg\:hidden { display: none !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:flex { display: flex !important; }
}

/* ── Typography helpers ── */
.text-xs  { font-size: 0.75rem; line-height: 1rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-base{ font-size: 1rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-display  { font-family: 'Playfair Display', serif !important; }
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight  { line-height: 1.25; }
.leading-relaxed{ line-height: 1.625; }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }
.uppercase      { text-transform: uppercase; }
.italic         { font-style: italic; }
.underline      { text-decoration: underline; }
.no-underline, a.no-underline { text-decoration: none; }
.max-w-prose    { max-width: 65ch; }

/* ── Colors / backgrounds ── */
.text-white        { color: #fff; }
.text-navy-900     { color: var(--navy); }
.text-navy-800     { color: var(--navy-800); }
.text-brand-600    { color: var(--brand); }
.text-brand-500    { color: #2AABDF; }
.text-brand-400    { color: var(--brand-light); }
.text-ink-700      { color: var(--ink-700); }
.text-ink-500      { color: var(--ink-500); }
.text-ink-300      { color: var(--ink-300); }
.text-gray-700     { color: #374151; }
.text-green-700    { color: #15803d; }
.text-red-700      { color: #b91c1c; }
.text-amber-700    { color: #b45309; }
.text-blue-700     { color: #1d4ed8; }

.bg-white          { background-color: #fff; }
.bg-surface-alt    { background-color: var(--surface); }
.bg-navy-900       { background-color: var(--navy); }
.bg-navy-800       { background-color: var(--navy-800); }
.bg-brand-600      { background-color: var(--brand); }
.bg-brand-500      { background-color: #2AABDF; }
.bg-brand-tint     { background-color: rgba(27,157,217,0.1); }
.bg-gray-50        { background-color: #f9fafb; }
.bg-gray-100       { background-color: #f3f4f6; }
.bg-green-100      { background-color: #dcfce7; }
.bg-red-50         { background-color: #fef2f2; }
.bg-blue-50        { background-color: #eff6ff; }
.bg-amber-50       { background-color: #fffbeb; }

/* ── Borders ── */
.border            { border: 1px solid #e5e7eb; }
.border-2          { border: 2px solid; }
.border-t          { border-top: 1px solid; }
.border-b          { border-bottom: 1px solid; }
.border-white\/10  { border-color: rgba(255,255,255,0.1); }
.border-white\/25  { border-color: rgba(255,255,255,0.25); }
.border-ink-300    { border-color: var(--ink-300); }
.border-ink-300-40 { border-color: rgba(203,213,225,0.4); }
.border-navy-900   { border-color: var(--navy); }
.border-red-200    { border-color: #fecaca; }
.border-blue-200   { border-color: #bfdbfe; }
.border-amber-200  { border-color: #fde68a; }
.border-green-200  { border-color: #bbf7d0; }
.border-gray-200   { border-color: #e5e7eb; }

/* ── Rounded ── */
.rounded    { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl{ border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ── Shadows ── */
.shadow-card { box-shadow: 0 1px 3px rgba(7,44,66,.06), 0 4px 16px -4px rgba(7,44,66,.12); }
.shadow-pop  { box-shadow: 0 4px 20px -4px rgba(7,44,66,.18); }
.shadow-sm   { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md   { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.shadow-lg   { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }

/* ── Transitions ── */
.transition { transition: all 0.15s ease; }

/* ── Opacity / visibility ── */
.opacity-0 { opacity: 0; }
.text-white\/65  { color: rgba(255,255,255,0.65); }
.text-white\/70  { color: rgba(255,255,255,0.7); }
.text-white\/80  { color: rgba(255,255,255,0.8); }
.text-white\/85  { color: rgba(255,255,255,0.85); }

/* ── Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(203,213,225,0.5);
}
.site-header .inner { height: 5rem; }
.nav-link { color: var(--ink-700); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-link:hover { color: var(--navy); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 0.875rem;
  padding: 0.625rem 1.25rem; border-radius: 9999px; text-decoration: none;
  box-shadow: 0 4px 20px -4px rgba(7,44,66,.18); transition: background 0.15s;
}
.nav-cta:hover { background: #2AABDF; }

/* ── Stripe ── */
.ld-stripe { height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-light)); flex-shrink: 0; }

/* ── Eyebrow ── */
.eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--brand); color: #fff; font-weight: 600;
  padding: 0.875rem 1.75rem; border-radius: 9999px; text-decoration: none;
  box-shadow: 0 4px 20px -4px rgba(7,44,66,.18); transition: background 0.15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #2AABDF; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--navy); font-weight: 600;
  padding: 0.875rem 1.75rem; border-radius: 9999px; text-decoration: none;
  border: 1.5px solid rgba(7,44,66,0.2); transition: border-color 0.15s;
}
.btn-outline:hover { border-color: rgba(7,44,66,0.6); }
.btn-navy {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--navy); color: #fff; font-weight: 600;
  padding: 0.875rem 1.75rem; border-radius: 9999px; text-decoration: none;
  border: none; cursor: pointer; transition: background 0.15s; width: 100%;
}
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost-white {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #fff; font-weight: 600;
  padding: 0.875rem 1.75rem; border-radius: 9999px; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25); transition: border-color 0.15s;
}
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.6); }

/* ── Google sign-in button ── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: 100%; padding: 0.875rem 1.5rem; border-radius: 9999px;
  background: #fff; border: 1.5px solid var(--ink-300);
  font-weight: 600; font-size: 0.95rem; color: #3C4043;
  text-decoration: none; transition: box-shadow 0.15s, border-color 0.15s;
}
.btn-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); border-color: #B8BFC9; }

/* ── Form inputs ── */
.input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
  border: 1.5px solid var(--ink-300); font-size: 0.9375rem;
  font-family: inherit; background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; display: block; margin-bottom: 1rem;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,157,217,0.15); }

/* ── Cards ── */
.card {
  background: #fff; border-radius: 1rem;
  border: 1px solid rgba(203,213,225,0.4);
  box-shadow: 0 1px 3px rgba(7,44,66,.06), 0 4px 16px -4px rgba(7,44,66,.12);
  padding: 1.5rem;
}
@media (min-width: 768px) { .card { padding: 2.5rem; } }

/* ── Login page ── */
.login-section { background: var(--surface); }
.login-section .inner {
  display: grid; gap: 2.5rem; padding: 3rem 0;
}
@media (min-width: 1024px) {
  .login-section .inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 0; }
}
.login-card { background: #fff; border-radius: 1rem; border: 1px solid rgba(203,213,225,0.4); box-shadow: 0 1px 3px rgba(7,44,66,.06), 0 4px 16px -4px rgba(7,44,66,.12); padding: 2rem; text-align: center; }
@media (min-width: 768px) { .login-card { padding: 2.5rem; } }
.login-icon { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(27,157,217,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(203,213,225,0.5); }
.login-divider span { font-size: 0.75rem; color: var(--ink-300); }

/* ── Dashboard stats ── */
.stat-card { background: #fff; border-radius: 1rem; border: 1px solid rgba(203,213,225,0.4); box-shadow: 0 1px 3px rgba(7,44,66,.06), 0 4px 16px -4px rgba(7,44,66,.12); padding: 1.25rem 1.5rem; }
.stat-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 800; color: var(--navy); margin-top: 0.25rem; }

/* ── Tab strip ── */
.tab-strip { display: flex; gap: 0.25rem; background: #fff; border: 1px solid rgba(203,213,225,0.4); border-radius: 0.75rem; padding: 0.25rem; }
.tab { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-500); text-decoration: none; transition: all 0.15s; }
.tab:hover { color: var(--navy); }
.tab.active { background: var(--navy); color: #fff; }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); padding: 0.75rem 1.25rem; border-bottom: 1px solid rgba(203,213,225,0.4); }
td { padding: 0.875rem 1.25rem; border-bottom: 1px solid rgba(203,213,225,0.2); color: var(--ink-700); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray  { background: #f3f4f6; color: #6B7280; }

/* ── Section spacing ── */
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

/* ── Support strip ── */
.support-strip { background: var(--navy); color: #fff; padding: 2.5rem 0; }
.support-strip h2 { color: #fff; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); margin-top: auto; }
.site-footer a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-heading { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; font-size: 0.875rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ── Admin ── */
.admin-header { background: var(--navy); color: #fff; padding: 1rem 0; }
.admin-header a { color: rgba(255,255,255,0.7); text-decoration: none; }
.admin-header a:hover { color: #fff; }

/* ── Flash messages ── */
.flash-notice { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1rem; }
.flash-alert  { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem; margin-bottom: 1rem; }

/* ── Utility ── */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.select-none { user-select: none; }
.whitespace-nowrap { white-space: nowrap; }
.not-italic { font-style: normal; }
.list-none { list-style: none; }
.divide-y > * + * { border-top: 1px solid rgba(203,213,225,0.3); }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.h-px { height: 1px; }
.w-5  { width: 1.25rem; } .h-5  { height: 1.25rem; }
.w-6  { width: 1.5rem; }  .h-6  { height: 1.5rem; }
.w-8  { width: 2rem; }    .h-8  { height: 2rem; }
.w-10 { width: 2.5rem; }  .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }    .h-12 { height: 3rem; }
.h-9  { height: 2.25rem; }
.h-11 { height: 2.75rem; }
.h-20 { height: 5rem; }
.w-auto { width: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-content { max-width: 1200px; }
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }
