/* SameDay Pros — black / white / blue */

:root {
  --black: #0b0e14;
  --ink: #141a26;
  --white: #ffffff;
  --muted: #5b6474;
  --line: #e6e9f0;
  --blue: #1f6feb;
  --blue-dark: #175cd3;
  --blue-soft: #e8f0fe;
  --danger: #d33;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue) 50%, var(--black) 50%);
  border: 2px solid var(--blue);
  display: inline-block;
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: #c9d4e8; text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--white); }
.linkbtn {
  background: none; border: none; color: #c9d4e8;
  font-size: .95rem; cursor: pointer; padding: 0;
}
.linkbtn:hover { color: var(--white); }

/* hero */
.hero {
  padding: 84px 0 64px;
  text-align: center;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  color: var(--blue);
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--black);
  letter-spacing: -1px;
}
.accent { color: var(--blue); }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 26px; }
.hero .lede { text-align: center; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-ghost { background: var(--white); color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.btn-small { padding: 6px 14px; font-size: .82rem; border-radius: 999px; }
.btn-danger-ghost {
  background: var(--white); color: var(--danger); border: 1px solid var(--danger);
}
.btn-danger-ghost:hover { background: var(--danger); color: var(--white); }

/* cards / panels */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 20px 0 50px;
}
.card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .step {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; color: var(--black); }
.card p { margin: 0; color: var(--muted); }

.panel { margin: 0 0 34px; }
.panel.slim { padding: 16px 20px; background: var(--blue-soft); border-color: #c9dcfb; }
.panel h2 { margin: 0 0 10px; color: var(--black); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.panel-head h2 { margin: 0; }

.rates {
  list-style: none; padding: 0; margin: 22px 0;
  display: flex; gap: 34px; flex-wrap: wrap;
}
.rates li { display: flex; flex-direction: column; }
.rates strong { font-size: 2rem; color: var(--blue); }
.rates span { color: var(--muted); font-size: .92rem; }

.services { margin: 10px 0 60px; }
.services h2 { color: var(--black); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  background: var(--black); color: var(--white);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem;
}
.chips span:nth-child(3n) { background: var(--blue); }

/* forms */
.formwrap { max-width: 620px; margin: 46px auto 70px; }
.formwrap.narrow { max-width: 460px; text-align: center; }
.formwrap h1 { color: var(--black); margin-bottom: 6px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; text-align: left; }
.form label { font-weight: 600; font-size: .94rem; color: var(--black); display: flex; flex-direction: column; gap: 6px; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.form input, .form select, .form textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 1.5px solid var(--line); border-radius: 8px; padding: 14px; }
legend { font-weight: 600; padding: 0 8px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 400 !important; }
.check input { width: auto; }
.errors {
  background: #fdecec; border: 1px solid #f5b5b5; color: #a02020;
  border-radius: 8px; padding: 12px 18px; margin-top: 18px; text-align: left;
}
.errors ul { margin: 0; padding-left: 18px; }

.success-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input { width: 130px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .85rem; }

/* dashboard */
.dashhead { margin: 40px 0 24px; }
.dashhead h1 { color: var(--black); margin: 0 0 6px; }
.dashgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 820px) { .dashgrid { grid-template-columns: 1fr; } }

.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; }
.alert {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.alert p { margin: 6px 0; color: var(--muted); font-size: .9rem; }
.meta { color: var(--muted); font-size: .8rem; }

.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-size: 1.7rem; color: var(--blue); }
.stats span { color: var(--muted); font-size: .88rem; }

.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.table .actions { white-space: nowrap; }
.table select { padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .85rem; margin-right: 6px; }
.empty { color: var(--muted); text-align: center; padding: 24px !important; }

.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.st-new { background: var(--blue-soft); color: var(--blue-dark); }
.st-needs_manual_routing { background: #fff3d6; color: #8a5a00; }
.st-routed { background: #e6f4ea; color: #137333; }
.st-accepted { background: #e6f4ea; color: #137333; }
.st-scheduled { background: #f3e8fd; color: #6a1fb0; }
.st-completed { background: var(--black); color: var(--white); }
.st-preferred { background: var(--blue); color: var(--white); }
.st-standard { background: var(--line); color: var(--muted); }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
}
