/* -----------------------------------------------------------------------------
   WCAS Client Dashboard  -  Day 1 scaffold styles
   Uses the WCAS brand tokens (DM Serif Display + DM Sans, warm off-white
   surface, sunrise orange accent). Full brand-brief in the brand-kit.
   -----------------------------------------------------------------------------
*/

:root {
  /* Surfaces */
  --bg:           #FBFAF7;
  --bg-alt:       #F4EFE6;
  --bg-elev:      #FFFFFF;
  --bg-warm:      #FFF6E8;

  /* Ink */
  --ink:          #0F2A44;
  --ink-soft:     #3D4A5C;
  --ink-muted:    #6B7280;
  --ink-faint:    #97A0AC;

  /* Brand */
  --accent:       #E97B2E;
  --accent-deep:  #C9631E;
  --accent-soft:  #FCE7D2;
  --teal:         #2E8FA8;
  --teal-soft:    #DEEBF0;

  /* Borders + shadows */
  --border:       #E8E1D4;
  --border-soft:  #F1ECE0;
  --border-strong:#D9CFB9;
  --shadow-sm:    0 1px 2px rgba(15, 42, 68, 0.04);
  --shadow-md:    0 4px 12px rgba(15, 42, 68, 0.06);
  --shadow-lg:    0 16px 40px rgba(15, 42, 68, 0.08);
  --shadow-glow:  0 8px 24px rgba(233, 123, 46, 0.18);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type */
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w:      1200px;
  --max-w-text: 720px;
  --gutter:     20px;

  /* Motion */
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast:  140ms;
  --t-base:  220ms;
  --t-slow:  420ms;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: var(--s-5); }
h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: var(--s-4); }
h3 { font-size: clamp(22px, 2.5vw, 28px); margin-bottom: var(--s-3); }

p { margin-bottom: var(--s-4); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  min-height: 44px;
  min-width: 44px;
}

.btn:hover {
  background: var(--accent-deep);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  color: var(--ink);
  background: var(--bg-elev);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-alt);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.landing {
  max-width: var(--max-w-text);
  margin: var(--s-10) auto var(--s-9);
  padding: 0 var(--gutter);
  text-align: left;
}

.landing__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

.landing__lead {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: var(--s-6);
  max-width: 560px;
}

.landing__cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

.landing__meta {
  font-size: 14px;
  color: var(--ink-muted);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  margin-top: var(--s-7);
}

.landing__meta a { font-weight: 500; }

/* Skeleton loader pattern reused across dashboard Day 2+ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 0%, var(--bg-elev) 50%, var(--bg-alt) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
