* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f4;
  color: #17231b;
  min-height: 100vh;
  margin: 0;
}

.home-page {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.home-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
}

.intro-panel {
  min-height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(23,35,27,0.08);
  box-shadow: 0 16px 40px rgba(23,35,27,0.08);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1f6b3f;
  color: #fff;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.08);
}

.brand-mark svg {
  width: 42px;
  height: 42px;
}


.logo-house {
  fill: rgba(255,255,255,0.2);
  stroke: #fff;
  stroke-width: 3;
  stroke-linejoin: round;
}

.logo-roof,
.logo-door,
.logo-roots {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 3px;
  color: #6d776f;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.02;
  margin: 0;
  letter-spacing: 0;
}

.hero-text {
  max-width: 610px;
  margin: 0;
  color: #405146;
  font-size: 1.08rem;
  line-height: 1.55;
}

.trust-note {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #6d776f;
  font-size: 0.9rem;
  line-height: 1.35;
}

.trust-note strong {
  color: #f97316;
  font-size: 1.2rem;
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.feature-grid span {
  padding: 11px 12px;
  border-radius: 8px;
  background: #eef5ef;
  color: #254d32;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(31,107,63,0.1);
}

.login-box {
  width: 100%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23,35,27,0.1);
  border: 1px solid rgba(23,35,27,0.08);
}

.login-box h2 {
  font-size: 1.35rem;
  margin: 0;
}

.login-note {
  margin: 0.3rem 0 1rem;
  color: #6d776f;
  font-size: 0.9rem;
}

.field {
  margin-bottom: 0.75rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input {
  width: 100%;
  padding: 0.6rem 0.65rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #ccd5ce;
  outline: none;
}

input:focus {
  border-color: #1f6b3f;
  box-shadow: 0 0 0 3px rgba(31,107,63,0.12);
}

.btn {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  background: #1f6b3f;
  color: #fff;
  cursor: pointer;
  margin-top: 0.2rem;
  font-weight: 700;
}

.btn:hover {
  background: #185632;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-align: center;
}

.status.error {
  color: #d93025;
}

.status.success {
  color: #1b9e3e;
}

.signup-link {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.signup-link a {
  color: #1f6b3f;
  font-weight: 700;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

.workflow-section {
  padding: 0 0 42px;
}

.workflow-heading {
  margin-bottom: 16px;
}

.workflow-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: workflow;
}

.workflow-card {
  position: relative;
  min-height: 156px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(23,35,27,0.08);
  box-shadow: 0 10px 28px rgba(23,35,27,0.07);
}

.workflow-card:after {
  content: ">";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1f6b3f;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  transform: translateY(-50%);
  z-index: 2;
}

.workflow-card:nth-child(3):after,
.workflow-card:nth-child(6):after {
  display: none;
}

.workflow-step {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5ef;
  color: #1f6b3f;
  font-weight: 800;
  margin-bottom: 12px;
}

.workflow-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.workflow-card p {
  margin: 0;
  color: #536258;
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-footer {
  padding: 0 0 22px;
  text-align: center;
  color: #6d776f;
  font-size: 0.85rem;
}

.home-footer p {
  margin: 0;
}

@media(max-width: 760px) {
  body {
    min-height: 100svh;
  }

  .home-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: start;
    align-items: start;
    gap: 14px;
    padding: 12px 0 22px;
  }

  .home-page {
    width: min(100% - 24px, 430px);
  }

  .intro-panel {
    min-height: auto;
    padding: 18px;
    gap: 14px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .hero-text {
    font-size: 0.98rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .feature-grid span {
    padding: 9px;
    font-size: 0.82rem;
  }

  .login-box {
    min-height: 0;
    align-self: start;
    padding: 1.15rem;
  }

  .workflow-section {
    padding: 8px 0 26px;
  }

  .workflow-heading h2 {
    font-size: 1.3rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workflow-card {
    min-height: auto;
    padding: 14px 14px 14px 58px;
  }

  .workflow-card:after {
    top: auto;
    right: auto;
    left: 26px;
    bottom: -17px;
    transform: rotate(90deg);
  }

  .workflow-card:nth-child(3):after {
    display: grid;
  }

  .workflow-step {
    position: absolute;
    left: 14px;
    top: 14px;
    margin-bottom: 0;
  }
}

@media(max-width: 380px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* waiting cover screen */
#cover-spin {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.7);
  z-index: 9999;
  display: none;
}

@-webkit-keyframes spin {
  from { -webkit-transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#cover-spin::after {
  content: '';
  display: block;
  position: absolute;
  left: 48%;
  top: 40%;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-color: black;
  border-top-color: transparent;
  border-width: 4px;
  border-radius: 50%;
  -webkit-animation: spin .8s linear infinite;
  animation: spin .8s linear infinite;
}
