:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #5d687a;
  --line: #d8e0ea;
  --green: #127c72;
  --yellow: #c98217;
  --red: #c73e4a;
  --navy: #101c31;
  --sky: #eaf4ff;
  --mint: #e8f7f3;
  --amber-soft: #fff4dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 24px;
}

.topbar span {
  color: #b8c7dc;
  display: block;
  font-size: 13px;
  margin-top: 2px;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.topbar nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.preview-banner {
  background: var(--amber-soft);
  border-bottom: 1px solid #f1d497;
  color: #684a12;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  text-align: center;
}

.page {
  margin: 0 auto;
  max-width: 1100px;
  padding: 28px 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
  padding: 24px;
}

.hero-panel {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  overflow: hidden;
  padding: 28px;
}

.hero-copy {
  align-self: center;
}

.lead {
  color: #344156;
  font-size: 18px;
  max-width: 660px;
}

.hero-product {
  background: #111d31;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 16px;
  min-height: 320px;
  padding: 18px;
}

.product-bar {
  display: flex;
  gap: 7px;
}

.product-bar span {
  background: #f6c85f;
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

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

.product-grid section,
.product-list div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
}

.product-grid p,
.product-list span {
  color: #cbd8cb;
  font-size: 13px;
  margin: 0;
}

.product-grid strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feature-strip span {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.setup-steps {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.setup-steps article,
.setup-steps a {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  text-decoration: none;
}

.setup-steps strong {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.setup-steps span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.onboarding-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.onboarding-item {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 14px;
  text-decoration: none;
}

.onboarding-item strong {
  background: var(--amber-soft);
  border-radius: 999px;
  color: #684a12;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  padding: 7px 10px;
}

.onboarding-item.done strong {
  background: var(--mint);
  color: var(--green);
}

.onboarding-item b,
.onboarding-item small {
  display: block;
}

.onboarding-item small {
  color: var(--muted);
  line-height: 1.4;
  margin-top: 3px;
}

.section-panel {
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.04);
  min-height: 148px;
  padding: 18px;
}

.card h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.subhead {
  font-size: 22px;
  margin: 24px 0 8px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button,
button {
  background: var(--green);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.button:hover,
button:hover {
  filter: brightness(0.94);
}

button.danger {
  background: var(--red);
}

.button.secondary {
  background: #26364f;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  margin-top: 14px;
}

input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

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

.full {
  grid-column: 1 / -1;
}

.login-wrap {
  display: grid;
  min-height: calc(100vh - 130px);
  place-items: center;
}

.login-panel {
  max-width: 420px;
  width: 100%;
}

.alert {
  border-radius: 6px;
  font-weight: 700;
  padding: 10px 12px;
}

.alert.error {
  background: #fff0f2;
  color: var(--red);
}

.alert.success {
  background: var(--mint);
  color: var(--green);
}

.privacy-note {
  background: var(--mint);
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  padding: 10px 12px;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.facts div {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  font-weight: 700;
  margin: 0;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mini-list div {
  display: flex;
  justify-content: space-between;
}

.mini-list dt {
  color: var(--muted);
}

.mini-list dd {
  font-weight: 700;
  margin: 0;
}

.status-good {
  border-top: 4px solid var(--green);
}

.status-warn {
  border-top: 4px solid var(--yellow);
}

.status-bad {
  border-top: 4px solid var(--red);
}

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

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

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

th {
  color: var(--muted);
  font-size: 13px;
}

.approval-list {
  display: grid;
  gap: 12px;
}

.approval-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  padding-top: 12px;
}

.approval-item p {
  margin: 6px 0 0;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 12px;
}

.notification-item p {
  margin: 6px 0 0;
}

.notification-item.priority-high {
  border-left: 4px solid var(--red);
  padding-left: 12px;
}

.warning-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.ok-text {
  color: var(--green);
  font-weight: 700;
}

.warn-text {
  color: var(--yellow);
  font-weight: 700;
}

.bad-text {
  color: var(--red);
  font-weight: 700;
}

.review-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.employee-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.employee-editor,
.time-editor,
.location-editor {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px 12px;
  grid-template-columns: 1.2fr repeat(4, minmax(120px, 1fr));
  padding-top: 14px;
}

.employee-editor p,
.time-editor p,
.location-editor p {
  margin: 4px 0 0;
}

.inline-filter {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.inline-filter label {
  margin-top: 0;
  min-width: 180px;
}

.inline-status-form {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 210px;
}

.inline-status-form select {
  min-width: 112px;
}

.inline-status-form button {
  padding: 10px 12px;
}

.inline-invite-form {
  align-items: center;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.inline-invite-form span {
  color: var(--muted);
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

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

.checklist-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.checklist-head {
  align-items: center;
  background: var(--sky);
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.checklist-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.checklist-row p {
  margin: 0;
}

.checklist-row small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.note-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.note-list article {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.note-list p {
  margin: 6px 0;
}

.note-list small {
  color: var(--muted);
}

.pricing-grid {
  align-items: stretch;
}

.price-card {
  display: grid;
  gap: 8px;
  min-height: 100%;
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 14px 34px rgba(18, 124, 114, 0.16);
}

.price {
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0;
}

.check-list {
  color: var(--muted);
  display: grid;
  gap: 8px;
  line-height: 1.4;
  margin: 8px 0 0;
  padding-left: 20px;
}

.small-copy {
  font-size: 13px;
}

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

  .cards,
  .setup-steps,
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-editor,
  .time-editor,
  .location-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: 24px;
  }

  .cards,
  .two,
  .hero-panel,
  .product-grid,
  .setup-steps,
  .form-grid,
    .approval-item,
    .notification-item,
    .review-form,
    .inline-status-form,
    .inline-invite-form,
    .employee-editor,
    .time-editor,
    .location-editor,
    .checklist-grid,
    .onboarding-item,
  .checklist-row {
    grid-template-columns: 1fr;
  }

  .page {
    padding: 18px 10px;
  }

  .panel,
  .hero-panel,
  .card {
    padding: 16px;
  }

  .actions,
  .topbar nav,
  .inline-filter {
    justify-content: flex-start;
    width: 100%;
  }

  .actions .button,
  .actions button,
  .actions form,
  .inline-filter button,
  .inline-filter .button,
  button {
    text-align: center;
    width: 100%;
  }

  input,
  select,
  textarea {
    width: 100%;
  }

  table {
    min-width: 680px;
  }
}
