:root {
  --ink: #10151c;
  --muted: #5d6b7a;
  --line: #e2e7ee;
  --bg: #f7f9fb;
  --card: #ffffff;
  --brand: #12694f;
  --brand-ink: #ffffff;
  --danger: #b3261e;
  --warn: #9a6400;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 26px 0 10px; }
h3 { font-size: 16px; margin: 0 0 6px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 24px 28px 60px; }

/* nav */
.nav {
  display: flex; align-items: center; gap: 22px;
  padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand-logo { height: 30px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 24px; } }

/* The logo rolls in from the left and coasts to a stop. The easing does the
   work: nearly all the distance is covered early, then it settles. */
@keyframes logo-spin-in {
  from { transform: translateX(-60vw) rotate(-900deg); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: translateX(0) rotate(0deg); opacity: 1; }
}
.spin-in {
  animation: logo-spin-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 50% 50%;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .spin-in { animation: none; }
}

/* The landing page leads with the logo instead of the nav, so it is sized to
   carry the top of the page on its own. */
.hero-logo {
  display: block; width: min(460px, 78vw); height: auto; margin: 0 0 26px;
}
.nav-links { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right form { margin: 0; }
.who { color: var(--muted); }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); padding: 7px 14px; border-radius: var(--radius);
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 11px 22px; font-size: 16px; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.block { width: 100%; }
form.inline { display: inline; }

/* hero */
.hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.hero h1 { font-size: 42px; line-height: 1.12; margin: 10px 0 18px; }
.signal {
  margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--brand);
  background: var(--bg); color: var(--ink); font-style: italic; max-width: 640px;
}
.lede { color: var(--muted); max-width: 660px; font-size: 16px; }
.cta-row { display: flex; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.fineprint { color: var(--muted); font-size: 13px; }
.band { padding-top: 34px; }
.band.alt { background: transparent; }
.cta-band { text-align: center; }
.prose { color: var(--muted); max-width: 680px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 13px;
}
.card p { color: var(--muted); margin: 0; }

/* stats */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: block; color: var(--ink);
}
.stat:hover { text-decoration: none; border-color: var(--muted); }
.stat .n { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat .l { display: block; color: var(--muted); font-size: 13px; }
.stat.danger .n { color: var(--danger); }

/* layout */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* lists + tables */
.list { list-style: none; margin: 0; padding: 0; background: var(--card);
        border: 1px solid var(--line); border-radius: var(--radius); }
.list .row { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.list .row:last-child { border-bottom: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.strong { font-weight: 600; color: var(--ink); }
.meta { color: var(--muted); font-size: 13px; }

.table { width: 100%; border-collapse: collapse; background: var(--card);
         border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; white-space: nowrap; }
.muted { opacity: .55; }

/* pills */
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 600; background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.sev-urgent, .overdue { background: #fde8e6; border-color: #f3c2bd; color: var(--danger); }
.sev-high { background: #fdf0dc; border-color: #f0d5a6; color: var(--warn); }
.sev-medium { background: #e9f1fb; border-color: #c6dbf3; color: #1b4f8a; }
.sev-low { background: var(--bg); }
.st-open { background: #eef1f4; }
.st-assigned { background: #e9f1fb; border-color: #c6dbf3; color: #1b4f8a; }
.st-progress { background: #fdf0dc; border-color: #f0d5a6; color: var(--warn); }
.st-blocked { background: #fde8e6; border-color: #f3c2bd; color: var(--danger); }
.st-done { background: #e4f2ea; border-color: #b7ddc8; color: var(--brand); }
.st-cancelled { opacity: .6; }

/* panels + forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
         padding: 16px; margin: 16px 0; }
.panel summary { font-weight: 600; cursor: pointer; }
.panel.open h2 { margin-top: 0; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
             gap: 12px; margin-top: 14px; align-items: end; }
.grid-form .wide { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
label.check input { width: auto; margin: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 160px; margin: 0; }
.hint, .opt { color: var(--muted); font-weight: 400; font-size: 12px; }

/* auth */
.auth-card { max-width: 460px; margin: 0 auto; background: var(--card);
             border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.auth-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card label { margin-top: 12px; }
.auth-card .sub { color: var(--muted); font-size: 14px; }
.auth-card button { margin-top: 18px; }
.captcha { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.captcha img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.errors { background: #fde8e6; border: 1px solid #f3c2bd; color: var(--danger);
          border-radius: 8px; padding: 10px 14px 10px 30px; margin: 12px 0; }

/* misc */
.toasts {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px 11px 15px; border-radius: var(--radius);
  border: 1px solid var(--line); border-left: 3px solid var(--muted);
  background: var(--card); box-shadow: 0 6px 20px rgba(16, 21, 28, .14);
  animation: toast-in .18s ease-out;
}
.toast.leaving { animation: toast-out .18s ease-in forwards; }
.toast-success { border-left-color: var(--brand); }
.toast-error { border-left-color: var(--danger); color: var(--danger); }
.toast-info { border-left-color: #1b4f8a; }
.toast span { flex: 1; }
.toast-close {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 18px; line-height: 1; padding: 0 2px; font-family: inherit;
}
.toast-close:hover { color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .toast, .toast.leaving { animation: none; }
}
.banner { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand);
          border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.banner.warn { border-left-color: var(--warn); background: #fdf7ec; }
.tabs { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.tabs a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
          background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600; }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tabs a:hover { text-decoration: none; }
.empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line);
         border-radius: var(--radius); padding: 18px; }
.empty.big { text-align: center; padding: 60px 20px; }

.timeline { list-style: none; margin: 0; padding: 0; background: var(--card);
            border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px;
               display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 12px; min-width: 92px; }
.timeline .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
                  font-weight: 700; color: var(--brand); min-width: 92px; }
.timeline .kind-escalated { color: var(--danger); }
.timeline .body { flex: 1; }
.timeline .who { color: var(--muted); font-size: 12px; }

.price-card { max-width: 460px; background: var(--card); border: 1px solid var(--line);
              border-radius: var(--radius); padding: 24px; margin-top: 16px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { padding: 6px 0 6px 22px; position: relative; color: var(--muted); }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted);
        padding: 18px 20px; font-size: 13px; text-align: center; }

.issue-photo {
  display: block; max-width: 420px; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0;
}

.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.photo-strip img {
  width: 140px; height: 105px; object-fit: cover; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
}

.filters .grid-form { align-items: end; margin-top: 0; }
.tabs .count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 999px; background: var(--bg); color: var(--muted);
  font-size: 11px; font-weight: 700; text-align: center;
}
.tabs a.on .count { background: rgba(255, 255, 255, .25); color: var(--brand-ink); }

.foot-links { display: block; margin-top: 6px; }
.foot-links a { margin: 0 8px; color: var(--muted); }
.legal { max-width: 760px; }
.legal h2 { margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink); }

.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.pager a {
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--muted); font-size: 13px; font-weight: 600;
}
.pager a:hover { text-decoration: none; border-color: var(--muted); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pager .meta { margin-right: 8px; }
.pager .gap { color: var(--muted); }
.photo { display: inline-block; text-align: center; }
.photo form { margin-top: 4px; }

.searchbar { margin: 14px 0; }
.searchbar label { max-width: 420px; }

/* Covers the dashboard when an account is not entitled. The page beneath is
   still rendered, so signing out and reaching billing both still work. */
.lockout {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(16, 21, 28, .55); backdrop-filter: blur(3px);
}
.lockout-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; max-width: 460px; box-shadow: 0 20px 60px rgba(16, 21, 28, .3);
}
.lockout-card h2 { margin: 0 0 10px; font-size: 22px; }
.lockout-card .price { font-size: 30px; font-weight: 700; margin: 14px 0 0; }
.lockout-card .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .lockout { backdrop-filter: none; } }

.danger-zone { border-color: #f3c2bd; }
.danger-zone h2 { color: var(--danger); margin-top: 0; }
