/* Claimdesk — white mode, Wafer-like, Departure Mono */
@font-face {
  font-family: "Departure Mono";
  src:
    url("fonts/DepartureMono-Regular.woff2") format("woff2"),
    url("fonts/DepartureMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --bg-elevated: #fafafa;
  --surface: #ffffff;
  --surface-hover: #f3f3f1;
  --border: #e6e6e2;
  --border-subtle: #eeeeea;
  --text: #0a0a0a;
  --text-muted: #5c5c5c;
  --text-dim: #8a8a8a;
  --accent: #0a0a0a;
  --accent-soft: #f0f0ee;
  --danger: #c62828;
  --success-bg: #0a0a0a;
  --success-fg: #ffffff;
  --watermark: rgba(10, 10, 10, 0.045);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font: "Departure Mono", ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", monospace;
  --max: 1100px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light only;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.7;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 400;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

code {
  font-family: var(--font);
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  background: var(--accent-soft);
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--text);
  opacity: 1;
}

.wordmark-mark {
  flex-shrink: 0;
  color: var(--text);
}

.wordmark-text {
  white-space: nowrap;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.25rem;
  flex: 1;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-cta {
  display: none;
  gap: 0.5rem;
  margin-left: auto;
}

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  background: var(--bg-alt);
  opacity: 1;
}

@media (min-width: 800px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* Buttons — pill CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.btn:hover {
  opacity: 1;
}

.btn-sm {
  padding: 0.4rem 0.95rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #222;
  color: var(--bg);
}

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

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg-alt);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-alt);
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-alt {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt > .section-head,
.section-alt > .feature-grid,
.section-alt > .card-grid,
.section-alt > .form-panel,
.section-alt > .empty-state {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  font-weight: 400;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 0.875rem;
}

.empty-state {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-alt > .empty-state {
  background: var(--bg);
}

.empty-state[hidden] {
  display: none;
}

.empty-state a {
  text-decoration: underline;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid:empty {
  display: none;
}

@media (min-width: 640px) {
  .card-grid:not(:empty) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.job-card,
.agent-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.section-alt .job-card,
.section-alt .agent-card {
  background: var(--bg);
}

.job-card:hover,
.agent-card:hover {
  background: var(--surface-hover);
  border-color: #d0d0cc;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.budget,
.agent-status {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.job-card h3,
.agent-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.job-card > p,
.agent-card > p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.agent-caps {
  font-size: 0.75rem !important;
  color: var(--text) !important;
  margin-bottom: 0.5rem !important;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

/* Forms */
.form-panel {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .form-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

form {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  color: var(--text);
}

.optional {
  color: var(--text-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:hover,
.field textarea:hover {
  border-color: #c8c8c4;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--danger);
}

.form-success {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--success-fg);
  background: var(--success-bg);
  border-radius: var(--radius-sm);
}

.form-aside {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  min-height: 12rem;
}

.section-alt .form-aside {
  background: var(--bg);
}

.aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.aside-title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.local-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.local-list li {
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.local-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
}

.local-list span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-word;
}

.aside-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.aside-empty[hidden] {
  display: none;
}

/* Footer — Wafer-like giant watermark */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem 5rem;
  background: var(--bg);
}

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.12em;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0 0.5rem;
  font-size: clamp(4.5rem, 18vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  white-space: nowrap;
  color: var(--watermark);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

.footer-brand p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer-links a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .job-card,
  .agent-card,
  .field input,
  .field textarea {
    transition: none;
  }
}
