/* Public homepage. Kept separate from the workspace sheet so Bootstrap grid stays intact. */
:root {
  --home-navy: #102d3d;
  --home-navy-deep: #0c2431;
  --home-teal: #0d625c;
  --home-teal-bright: #117f76;
  --home-lime: #daf4ad;
  --home-mint: #e7f5f1;
  --home-bg: #f3f6f7;
  --home-ink: #16303c;
  --home-muted: #4a616b;
  --home-line: #d5e1e5;
  --home-white: #fff;
  --home-amber: #8a5608;
  --home-amber-bg: #fff4dc;
  --home-shadow: 0 14px 34px rgba(16, 45, 61, 0.08);
  --home-radius: 18px;
  --home-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.home-body {
  margin: 0;
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-ink);
  font-family: var(--home-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.home-body h1,
body.home-body h2,
body.home-body h3,
body.home-body p { margin-top: 0; }

body.home-body a { color: inherit; text-decoration: none; }

.home-skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--home-navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.home-skip:focus { transform: none; color: #fff; }

.home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--home-line);
  backdrop-filter: blur(10px);
}

.home-nav .navbar { padding-top: 0.55rem; padding-bottom: 0.55rem; }

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-navy);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
  min-height: 44px;
}

.home-brand small,
.home-footer-brand small {
  display: block;
  margin-top: 1px;
  color: var(--home-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.home-body a.home-brand,
body.home-body a.home-brand:hover { color: var(--home-navy); }

body.home-body .home-footer a.home-footer-brand,
body.home-body .home-footer a.home-footer-brand:hover { color: #fff; }

.home-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--home-navy);
  color: var(--home-lime);
  display: grid;
  place-items: center;
  flex: none;
}

.home-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-toggler {
  width: 44px;
  height: 44px;
  border: 1px solid var(--home-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.home-nav .navbar-collapse {
  margin-top: 0.65rem;
  padding: 0.65rem;
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 14px;
  box-shadow: var(--home-shadow);
}

.home-nav .nav-link {
  color: var(--home-ink);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
}

.home-nav .nav-link:hover,
.home-nav .nav-link:focus-visible {
  background: var(--home-mint);
  color: var(--home-teal);
}

.home-hero {
  position: relative;
  padding: 2.5rem 0 1.5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--home-bg) 72%);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--home-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-teal-bright);
}

.home-hero h1 {
  max-width: 16ch;
  margin-bottom: 0.85rem;
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--home-navy);
}

.home-lead {
  max-width: 38rem;
  margin-bottom: 1.25rem;
  color: var(--home-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

body.home-body a.home-btn-primary { background: var(--home-teal); color: #fff; }
body.home-body a.home-btn-primary:hover,
body.home-body a.home-btn-primary:focus-visible { background: #094e49; color: #fff; }

body.home-body a.home-btn-ghost {
  background: var(--home-white);
  color: var(--home-navy);
  border-color: var(--home-line);
}

body.home-body a.home-btn-ghost:hover,
body.home-body a.home-btn-ghost:focus-visible {
  background: var(--home-mint);
  color: var(--home-navy);
  border-color: #b7d8d2;
}

.home-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-facts li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--home-navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.home-facts li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: 0.85rem;
  border-radius: 50%;
  background: #b7c6cb;
}

.home-board {
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.home-board-head,
.home-board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.home-board-head {
  background: var(--home-navy);
  color: #fff;
}

.home-board-kicker {
  margin: 0 0 0.15rem;
  color: #9ec3c8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-board-head strong { font-size: 1rem; letter-spacing: -0.02em; }

.home-chip {
  flex: none;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(218, 244, 173, 0.18);
  color: var(--home-lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0.9rem 1rem 0.2rem;
  list-style: none;
}

.home-pipeline li {
  color: var(--home-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.home-pipeline li::before {
  content: "";
  display: block;
  height: 5px;
  margin-bottom: 0.4rem;
  border-radius: 99px;
  background: #e4ecee;
}

.home-pipeline li.is-done { color: var(--home-teal); }
.home-pipeline li.is-done::before { background: var(--home-teal-bright); }
.home-pipeline li.is-current { color: var(--home-navy); }
.home-pipeline li.is-current::before { background: #c6e86a; }

.home-files {
  margin: 0;
  padding: 0.35rem 0.7rem 0.5rem;
  list-style: none;
}

.home-files li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid #edf2f3;
}

.home-files li:last-child { border-bottom: 0; }

.home-file-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f7f7;
  border: 1px solid var(--home-line);
  color: #6d868c;
  font-size: 0.62rem;
  font-weight: 800;
}

.home-files strong,
.home-files small { display: block; min-width: 0; }
.home-files strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-files small { color: var(--home-muted); font-size: 0.78rem; }
.home-files li > span:nth-child(2) { min-width: 0; flex: 1; }

.home-tag {
  flex: none;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.home-tag.is-draft { background: #e7f3f2; color: var(--home-teal); }
.home-tag.is-review { background: var(--home-amber-bg); color: var(--home-amber); }
.home-tag.is-ready { background: var(--home-mint); color: #1d6b45; }

.home-board-foot {
  background: #f7faf9;
  border-top: 1px solid var(--home-line);
  justify-content: flex-start;
}

.home-board-foot i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--home-navy);
  color: var(--home-lime);
  flex: none;
}

.home-board-foot strong,
.home-board-foot span { display: block; }
.home-board-foot strong { font-size: 0.9rem; }
.home-board-foot span { color: var(--home-muted); font-size: 0.8rem; }

.home-section { padding: 2.75rem 0 1.5rem; }
.home-section-tint {
  background: #e8eef0;
  border-top: 1px solid #dbe4e7;
  border-bottom: 1px solid #dbe4e7;
}

.home-block-title {
  margin: 0 0 0.65rem;
  color: var(--home-navy);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.home-block-copy {
  max-width: 40rem;
  margin-bottom: 1.15rem;
  color: var(--home-muted);
}

#access,
#workflow,
#folders {
  scroll-margin-top: 5rem;
}

.home-path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  color: var(--home-navy);
  font-size: 0.84rem;
  font-weight: 600;
}

.home-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.home-portal {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(16, 45, 61, 0.04);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-portal:hover,
.home-portal:focus-visible {
  border-color: #9dcec7;
  color: inherit;
  box-shadow: var(--home-shadow);
}

.home-portal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  font-size: 1.15rem;
}

.home-portal-icon.is-navy { background: #e7eef2; color: var(--home-navy); }
.home-portal-icon.is-teal { background: var(--home-mint); color: var(--home-teal); }
.home-portal-icon.is-green { background: #e5f6ea; color: #1d6b45; }
.home-portal-icon.is-amber { background: var(--home-amber-bg); color: var(--home-amber); }

.home-role {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f2f6f7;
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-portal h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-portal p {
  flex: 1;
  margin-bottom: 0.9rem;
  color: var(--home-muted);
  font-size: 0.92rem;
}

.home-portal-go {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  color: var(--home-teal);
  font-weight: 800;
  font-size: 0.92rem;
}

.home-step,
.home-point {
  height: 100%;
  padding: 1rem;
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(16, 45, 61, 0.04);
}

.home-section-tint .home-step { background: #fbfcfc; }

.home-step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  background: var(--home-navy);
  color: var(--home-lime);
  font-size: 0.85rem;
  font-weight: 800;
}

.home-step h3,
.home-point h3 {
  margin-bottom: 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.home-step p,
.home-point p {
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 0.92rem;
}

.home-point-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: var(--home-mint);
  color: var(--home-teal);
  font-size: 1.15rem;
}

.home-assure {
  padding: 2.5rem 0;
  background: var(--home-navy);
  color: #fff;
}

.home-assure h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-assure p { margin-bottom: 0; color: #c5d7dc; max-width: 40rem; }

.home-assure-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-assure-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e7f1f3;
  font-size: 0.92rem;
}

.home-assure-list i { color: var(--home-lime); margin-top: 0.1rem; }

.home-footer {
  padding: 1.5rem 0 1.75rem;
  background: var(--home-navy-deep);
  color: #c5d5db;
}

.home-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-footer-brand small { color: #8eacb5; }

.home-footer a { color: #d5e6ea; text-decoration: none; }
.home-footer a:hover { color: var(--home-lime); }

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.home-footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

.home-legal {
  margin: 1rem 0 0;
  color: #8eacb5;
  font-size: 0.82rem;
}

:focus-visible {
  outline: 3px solid #7dcea8;
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .home-nav .navbar-collapse {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-hero { padding: 2.75rem 0 1rem; }
  .home-section { padding-top: 3.25rem; }
}

@media (max-width: 991.98px) {
  .home-nav .home-btn { width: 100%; }
}

@media (max-width: 575.98px) {
  .home-actions .home-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-portal { transition: none; }
}
