/* Caseload Co public marketing site
   Design tokens mirrored from src/app/globals.css (the dashboard's fixed
   light theme), including the real red/yellow/orange/green status tokens
   used throughout the product. Do not introduce a dark theme here either. */

:root {
  --navy: #1b2b4b;
  --navy-dark: #14203a;
  --amber: #f5a623;
  --fg: #111827;
  --muted-fg: #4b5563;
  --border: #e5e7eb;
  --surface: #f1f3f6;
  --bg: #ffffff;

  --status-green: #1f9d55;
  --status-yellow: #d4a72c;
  --status-orange: #e08a2c;
  --status-red: #d64545;

  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --measure: 65ch;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 0.25rem 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark.small {
  font-size: 1.1rem;
  color: #fff;
}

/* Buttons */

.btn-primary,
.btn-secondary,
.btn-signin {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 0.4rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-signin,
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-signin:hover,
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--navy);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-copy .hero-sub {
  max-width: var(--measure);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-fg);
}

/* Hero dashboard mock */

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.dashboard-mock-label {
  font-size: 0.78rem;
  color: var(--muted-fg);
  max-width: none;
  margin: 0;
  padding-left: 0.15rem;
}

.dashboard-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px -12px rgba(27, 43, 75, 0.18);
}

.dashboard-mock-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.15rem 0.25rem 0.9rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.dashboard-mock-title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.dashboard-mock-asof {
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.dashboard-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.8rem 0.85rem;
  min-width: 0;
}

.mock-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.mock-label {
  font-size: 0.68rem;
  color: var(--muted-fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-green {
  background: var(--status-green);
}

.status-yellow {
  background: var(--status-yellow);
}

.status-orange {
  background: var(--status-orange);
}

.status-red {
  background: var(--status-red);
}

.mock-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--fg);
  line-height: 1.15;
}

.mock-sub {
  font-size: 0.72rem;
  color: var(--muted-fg);
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  height: 1.5rem;
  margin-top: 0.5rem;
}

.mock-bars span {
  flex: 1;
  display: block;
  background: var(--navy);
  opacity: 0.35;
  border-radius: 1px;
  min-height: 2px;
}

/* Sections */

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--surface);
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-intro p {
  color: var(--muted-fg);
  font-size: 1.02rem;
}

/* Metric groups */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1.5rem;
}

.metric-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.metric-card li {
  margin-bottom: 0.4em;
}

.metric-card li:last-child {
  margin-bottom: 0;
}

/* How it works */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  padding-top: 3rem;
  background: var(--bg);
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 1;
}

.step p {
  color: var(--muted-fg);
  font-size: 0.97rem;
}

/* Security cards */

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  max-width: none;
}

.security-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 0.4rem;
  padding: 1.15rem 1.3rem;
}

.security-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35em;
}

.security-card p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

.security-note {
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #d7dce6;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.entity {
  font-size: 0.9rem;
  color: #aab3c6;
  margin-top: 0.6rem;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #d7dce6;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid #33456b;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: #8f9ab3;
  margin: 0;
  max-width: none;
}

/* Privacy page */

.policy {
  padding: 3.5rem 0 4.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.policy h2 {
  margin-top: 2.3rem;
}

.policy p,
.policy li {
  color: var(--muted-fg);
}

.policy .updated {
  color: var(--muted-fg);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    max-width: 480px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .dashboard-mock-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.75rem;
  }
}

@media (max-width: 420px) {
  .dashboard-mock-grid {
    grid-template-columns: 1fr;
  }
}
