:root {
  color-scheme: light dark;
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-soft: #f1f3f3;
  --line: #e5e7eb;
  --text: #0d2329;
  --muted: #4e6870;
  --yellow: #f8cf40;
  --yellow-light: #ffe070;
  --green: #217a4f;
  --red: #b94737;
  --header-bg: rgba(246, 246, 246, 0.9);
  --shadow: 0 24px 60px rgba(13, 35, 41, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1b;
    --panel: #0d0d0d;
    --panel-soft: #161616;
    --line: #2e2e2e;
    --text: #d6ecf2;
    --muted: #91a6ac;
    --green: #7bd9a8;
    --red: #ec735c;
    --header-bg: rgba(27, 27, 27, 0.9);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-soft: #f1f3f3;
  --line: #e5e7eb;
  --text: #0d2329;
  --muted: #4e6870;
  --green: #217a4f;
  --red: #b94737;
  --header-bg: rgba(246, 246, 246, 0.9);
  --shadow: 0 24px 60px rgba(13, 35, 41, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1b1b;
  --panel: #0d0d0d;
  --panel-soft: #161616;
  --line: #2e2e2e;
  --text: #d6ecf2;
  --muted: #91a6ac;
  --green: #7bd9a8;
  --red: #ec735c;
  --header-bg: rgba(27, 27, 27, 0.9);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 48px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  color: var(--text);
}

.logo-image {
  display: block;
  width: 138px;
  height: auto;
}

.footer-logo-image {
  display: block;
  width: 180px;
  height: auto;
}

.nav-links,
.header-actions,
.hero-actions,
.admin-actions,
.category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  justify-self: center;
}

.nav-links a,
.category-tabs button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a:hover,
.category-tabs button.is-active {
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  justify-content: flex-start;
  padding-left: 8px;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.moon-icon {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--yellow);
}

.moon-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--panel);
}

@media (prefers-color-scheme: light) {
  .theme-toggle {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 8px;
  }

  .moon-icon::after {
    display: none;
  }
}

:root[data-theme="light"] .theme-toggle {
  justify-content: flex-end;
  padding-left: 0;
  padding-right: 8px;
}

:root[data-theme="light"] .moon-icon::after {
  display: none;
}

:root[data-theme="dark"] .theme-toggle {
  justify-content: flex-start;
  padding-left: 8px;
  padding-right: 0;
}

:root[data-theme="dark"] .moon-icon::after {
  display: block;
}

.pill-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 33px;
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
}

.pill-button.yellow {
  background: var(--yellow);
  color: #050505;
}

.pill-button.yellow:hover {
  background: var(--yellow-light);
}

.pill-button.ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-section,
.section-shell,
.site-footer {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.hero-section {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding-top: 38px;
  padding-bottom: 34px;
  text-align: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: min(280px, 62vw);
  height: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(39px, 6vw, 72px);
  font-weight: 640;
  line-height: 1;
}

.hero-copy p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.prompt-box {
  width: min(760px, 100%);
}

.prompt-box label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.prompt-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.prompt-input input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 16px;
  font-size: 18px;
}

.query-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
}

.query-examples button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.query-examples button:hover {
  color: var(--text);
  background: var(--panel);
}

.prompt-input button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--yellow);
  color: #050505;
}

.send-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.send-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

.send-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-strip span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}

.instant-match {
  width: min(760px, 100%);
}

.match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.match-label {
  display: block;
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.match-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.match-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.match-actions {
  display: grid;
  gap: 8px;
}

.match-actions .pill-button {
  min-height: 40px;
  padding: 0 14px;
}

.section-shell {
  padding-top: 54px;
  padding-bottom: 54px;
}

.section-shell.compact {
  padding-top: 30px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section-head.minimal {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.section-head h2,
.form-layout h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(31px, 4.5vw, 56px);
  font-weight: 650;
  line-height: 1.04;
}

.section-head p,
.form-layout p,
.worker-card p,
.worker-detail p,
.price-card p,
.steps-grid p,
.faq-grid p,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.section-head > p {
  max-width: 420px;
  margin: 0;
}

.category-tabs {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.category-tabs button {
  border: 1px solid var(--line);
}

.worker-grid,
.pricing-grid,
.steps-grid,
.proof-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.worker-card,
.price-card,
.steps-grid article,
.proof-grid article,
.selected-panel,
.worker-detail,
.business-form,
.admin-card,
.faq-grid details,
.inline-notice,
.secondary-panel,
.agent-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.worker-card {
  display: grid;
  gap: 13px;
  min-height: 380px;
  padding: 18px;
}

.worker-card.is-selected,
.worker-card:hover {
  border-color: var(--yellow);
}

.worker-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--yellow);
  color: #050505;
  font-weight: 950;
}

.worker-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.12;
}

.worker-card p {
  margin: 8px 0 0;
}

.badge-row,
.tool-row,
.permission-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.tool,
.permission {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.badge {
  background: rgba(248, 207, 64, 0.16);
  color: var(--yellow);
}

.badge.green {
  background: rgba(123, 217, 168, 0.16);
  color: var(--green);
}

.tool,
.permission {
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.metric span,
.plan-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
}

.worker-card .pill-button {
  width: 100%;
  margin-top: auto;
}

.worker-detail {
  min-height: 260px;
  padding: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.worker-detail h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(29px, 4vw, 48px);
  line-height: 1.05;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--text);
}

.dot {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--yellow);
}

.selected-panel {
  padding: 20px;
  background: var(--panel-soft);
}

.selected-panel h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.panel-row:first-of-type {
  border-top: 0;
}

.panel-row span {
  color: var(--muted);
}

.panel-row strong {
  text-align: right;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps-grid article,
.proof-grid article {
  padding: 20px;
}

.steps-grid span,
.proof-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--yellow);
  color: #050505;
  font-weight: 950;
}

.steps-grid h3,
.proof-grid h3 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.secondary-panel {
  padding: 0;
  overflow: hidden;
}

.secondary-panel > summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--text);
  font-weight: 950;
}

.secondary-panel[open] {
  padding-bottom: 22px;
}

.secondary-panel .form-layout,
.secondary-panel .admin-login,
.secondary-panel .admin-dashboard {
  padding: 0 22px;
}

.form-layout.secondary {
  margin-top: 12px;
}

.price-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.price-card.featured {
  border-color: var(--yellow);
}

.price-card strong {
  display: block;
  color: var(--text);
  font-size: 48px;
  line-height: 1;
}

.price-card .pill-button {
  width: 100%;
  margin-top: auto;
}

.inline-notice {
  margin-top: 16px;
  padding: 18px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.business-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.business-form.narrow {
  max-width: 440px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

label.wide,
.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  color: var(--text);
  outline: 0;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid details {
  padding: 18px;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.admin-login {
  margin-bottom: 18px;
}

.admin-actions {
  justify-content: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 34px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  padding: 18px;
}

.admin-card h3 {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td select {
  min-width: 150px;
}

.mini-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-label input {
  width: auto;
}

.worker-admin-item {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.worker-admin-item strong {
  color: var(--text);
}

.agent-console {
  grid-column: 1 / -1;
}

.agent-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin-top: 12px;
}

.agent-item h4 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.agent-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.agent-output {
  padding: 12px;
  border-radius: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.agent-output strong,
.muted-note {
  color: var(--muted);
  font-weight: 900;
}

.agent-item pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 16px;
  padding: 12px;
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.check-pill.pass {
  color: #1f7a4d;
  border-color: rgba(31, 122, 77, 0.28);
}

.check-pill.review {
  color: #9b6a00;
  border-color: rgba(248, 207, 64, 0.42);
}

.check-pill.fail {
  color: #a43131;
  border-color: rgba(164, 49, 49, 0.32);
}

.site-footer {
  display: grid;
  gap: 16px;
  place-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
  color: var(--muted);
  text-align: center;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-footer .social-links {
  gap: 10px;
}

.social-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--text);
  font-weight: 850;
}

.social-links a:hover {
  border-color: var(--yellow);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(248, 207, 64, 0.38);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 18px 28px;
  }

  .nav-links,
  .header-actions {
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-section,
  .section-shell,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .worker-grid,
  .pricing-grid,
  .steps-grid,
  .proof-grid,
  .stats-grid,
  .admin-grid,
  .detail-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .match-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .match-meta {
    justify-content: center;
  }

  .match-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    padding: 16px;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions,
  .hero-actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-section,
  .section-shell,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-logo {
    width: min(240px, 76vw);
  }

  .prompt-input {
    grid-template-columns: minmax(0, 1fr) 48px;
    border-radius: 28px;
  }

  .form-grid,
  .metric-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .match-actions {
    grid-template-columns: 1fr;
  }

  .pill-button {
    width: 100%;
  }

  label.wide,
  .wide {
    grid-column: auto;
  }
}
