@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #53606d;
  --line: #d9e0e7;
  --soft: #f3f6f9;
  --paper: #ffffff;
  --card: #ffffff;
  --acre: #008CE4;
  --acre-2: #006faa;
  --lavender: #889CE7;
  --warn: #b7791f;
  --danger: #b42318;
  --success: #087f5b;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--acre-2); }
h1, h2, h3 { font-family: "Poppins", Arial, Helvetica, sans-serif; }

.wrap { margin: 0 auto; padding: 24px; }
.tracker-page .wrap { max-width: 1240px; }
.intake-page .wrap { max-width: 980px; padding-bottom: 72px; }

.panel {
  background: rgba(20, 20, 22, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.brand-logo {
  display: block;
  width: 170px;
  height: 50px;
  object-fit: contain;
  background: #ffffff;
}
.brand-department {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--acre);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  margin: 10px 0 12px;
  font-size: clamp(36px, 5.6vw, 66px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
h2 { font-weight: 700; letter-spacing: -.025em; }
.lead, .section-copy { color: var(--muted); font-weight: 300; line-height: 1.65; }
.lead { margin: 0; max-width: 760px; font-size: 16px; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--acre);
  border-radius: 5px;
  background: var(--acre);
  color: #ffffff;
  padding: 11px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); background: #0072bb; border-color: #0072bb; }
.btn.secondary { background: #ffffff; color: #000000; border-color: #ffffff; }
.btn.ghost { background: transparent; color: #ffffff; border-color: #ffffff; }
.btn.danger { background: #b91c1c; border-color: #b91c1c; }
.btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #68707c;
  border-radius: 5px;
  background: #ffffff;
  color: #101114;
  padding: 11px 12px;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #777f8b; }
textarea { min-height: 86px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--acre); box-shadow: 0 0 0 3px rgba(0, 140, 228, .22); }

/* Tracker */
.tracker-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
.tracker-page .hero-main {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-top: 5px solid var(--acre);
  background:
    linear-gradient(110deg, rgba(0, 140, 228, .08), transparent 62%),
    var(--paper);
}
.tracker-page .hero-main::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -78px;
  border: 30px solid rgba(136, 156, 231, .2);
  border-radius: 50%;
  pointer-events: none;
}
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.login-card {
  padding: 24px;
  display: grid;
  align-content: center;
  background: var(--lavender);
  color: #000000;
  border-color: var(--lavender);
}
.login-card h2 { margin: 0 0 8px; font-size: 23px; }
.login-card p { margin: 0 0 14px; color: #171a21; line-height: 1.5; }
.input-row { display: flex; gap: 8px; }
.message { margin-top: 10px; color: var(--muted); font-size: 13px; }
.login-card .message { color: #171a21; }
.message.error { color: var(--danger); font-weight: 700; }
.login-card .message.error { color: #7f1d1d; }
.hidden { display: none !important; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.stat { padding: 16px; border-top: 3px solid var(--acre); }
.stat:nth-child(even) { border-top-color: var(--lavender); }
.stat .k { font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.stat .l { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tab {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  color: var(--ink);
  padding: 10px 13px;
  font-weight: 600;
}
.tab.active { background: var(--acre); border-color: var(--acre); color: #ffffff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 12px 0; }
.search { max-width: 420px; }
.board { display: grid; grid-template-columns: 1fr; gap: 12px; }
.project { padding: 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; border-left: 5px solid var(--acre); }
.project h3 { margin: 0 0 7px; font-size: 20px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 600;
}
.pill.high, .pill.urgent { color: #fef3c7; background: #78350f; border-color: #92400e; }
.pill.status { color: #c7eaff; background: rgba(0, 140, 228, .14); border-color: rgba(0, 140, 228, .45); }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.field { padding: 12px; background: var(--soft); border-radius: 5px; border: 1px solid var(--line); }
.field b { display: block; margin-bottom: 5px; color: var(--acre-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.field span { color: var(--ink); line-height: 1.45; }
.card-section { padding: 20px; margin-top: 16px; }
.card-section h2 { margin: 0 0 8px; font-size: 26px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.step { padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.step .n { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: var(--acre); color: #ffffff; font-weight: 700; }
.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p, .card-section p { margin: 0; color: var(--muted); line-height: 1.55; }
.checklist { columns: 2; margin: 12px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; z-index: 20; background: rgba(0,0,0,.76); }
.modal { width: min(920px, 100%); max-height: 92vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 30px 120px rgba(0,0,0,.5); }
.modal-head { position: sticky; top: 0; padding: 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(20,20,22,.97); }
.modal-head h2 { margin: 0; }
.form { padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form label { color: var(--acre-2); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.form .wide { grid-column: 1 / -1; }
.modal-actions { padding: 0 18px 18px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.intake-list { display: grid; gap: 12px; margin-top: 14px; }
.intake-card { padding: 18px; border-left: 5px solid var(--acre); }
.intake-card.new { border-left-color: var(--warn); }
.intake-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.intake-head h3 { margin: 0 0 6px; font-size: 21px; }
.intake-summary { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; margin-left: 5px; border-radius: 5px; background: var(--warn); color: #000000; font-size: 11px; }
details.intake-details { margin-top: 12px; }
details.intake-details summary { cursor: pointer; color: var(--acre-2); font-weight: 700; }
.top-user { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 15px; color: var(--muted); font-size: 13px; }

/* Public intake */
.intake-page .hero { padding: 30px; margin-bottom: 16px; border-top: 5px solid var(--acre); }
.intake-page h2 { margin: 0 0 6px; font-size: clamp(23px, 4vw, 31px); }
.intake-page .note {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 140, 228, .45);
  border-left: 4px solid var(--acre);
  border-radius: 5px;
  background: rgba(0, 140, 228, .12);
  color: #d7f0ff;
  line-height: 1.5;
}
.progress-wrap { position: sticky; top: 0; z-index: 5; padding: 10px 0; background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.72), transparent); }
.progress { height: 8px; overflow: hidden; border-radius: 5px; background: var(--soft); }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acre), var(--lavender)); transition: width .2s ease; }
.intake-page .section { padding: 24px; margin-bottom: 16px; }
.section-copy { margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.intake-page label { display: block; margin: 0 0 7px; color: var(--acre-2); font-size: 12px; font-weight: 700; }
.required { color: var(--danger); }
.intake-page textarea { min-height: 104px; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.actions { padding: 24px; }
.intake-page .btn { padding: 14px 20px; }
.status { display: none; margin-top: 14px; padding: 14px 16px; border-radius: 5px; font-weight: 600; line-height: 1.5; }
.status.good { display: block; background: rgba(52, 211, 153, .13); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, .5); }
.status.bad { display: block; background: rgba(248, 113, 113, .13); color: #fecaca; border: 1px solid rgba(248, 113, 113, .5); }
.saved { margin-top: 10px; color: var(--muted); font-size: 12px; }

/* Light presentation requested for readability. */
.panel {
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(17, 17, 17, .06);
}
.brand-logo { background: #ffffff; }
.btn.secondary { background: #ffffff; color: #111111; border-color: #111111; }
.btn.ghost { background: #ffffff; color: #111111; border-color: #111111; }
input, select, textarea { border-color: #aeb7c2; background: #ffffff; color: #111111; }
.tracker-page .hero-main {
  background: linear-gradient(110deg, rgba(0, 140, 228, .06), transparent 62%), #ffffff;
}
.tracker-page .hero-main::after { border-color: rgba(136, 156, 231, .16); }
.login-card { background: #f0f2fc; color: #111111; border-color: rgba(136, 156, 231, .55); }
.login-card p, .login-card .message { color: #34404c; }
.tab { background: #ffffff; color: #111111; }
.pill.high, .pill.urgent { color: #7a4900; background: #fff7e6; border-color: #f2cc8f; }
.pill.status { color: #005b94; background: #eef7fd; border-color: rgba(0, 140, 228, .35); }
.modal-backdrop { background: rgba(17,17,17,.34); }
.modal { background: #ffffff; box-shadow: 0 30px 90px rgba(17,17,17,.2); }
.modal-head { background: rgba(255,255,255,.97); }
.intake-page .note { background: #eef7fd; color: #233746; }
.progress-wrap { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.76), transparent); }
.status.good { background: #ecfdf5; color: #087f5b; border-color: #a7f3d0; }
.status.bad { background: #fef2f2; color: #b42318; border-color: #fecaca; }

@media (max-width: 860px) {
  .wrap { padding: 14px; }
  .tracker-page .hero, .stats, .flow { grid-template-columns: 1fr; }
  .details, .form, .intake-summary { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .checklist { columns: 1; }
}
@media (max-width: 720px) {
  .intake-page .wrap { padding: 14px 14px 56px; }
  .intake-page .hero, .intake-page .section, .intake-page .actions { padding: 19px; }
  .grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .intake-page .btn { width: 100%; }
  .brand-row { gap: 10px; }
  .brand-logo { width: 132px; height: 40px; }
  .brand-department { padding-left: 10px; font-size: 9px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
