:root {
  --green: #1D9E75;
  --dark-green: #085041;
  --bg: #f4f7f5;
  --text: #15211d;
  --muted: #6a7773;
  --card: #ffffff;
  --border: #dfe7e3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.landing-page {
  min-height: 100vh;
  padding: 28px;
}

.top-nav {
  max-width: 1180px;
  margin: 0 auto 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark-green), var(--green));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-login {
  text-decoration: none;
  color: var(--dark-green);
  font-weight: 700;
  border: 1px solid var(--border);
  background: white;
  padding: 10px 18px;
  border-radius: 999px;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  display: inline-block;
}

.btn-primary {
  background: var(--green);
  color: white;
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(8, 80, 65, .14);
}

.card-header {
  background: linear-gradient(135deg, var(--dark-green), var(--green));
  color: white;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 20px;
}

.card-header span {
  display: block;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 8px;
}

.card-header strong {
  font-size: 38px;
}

.estimate-line {
  display: flex;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.estimate-line strong {
  color: var(--text);
}

.estimate-line.total {
  border-bottom: none;
  color: var(--dark-green);
  font-weight: 800;
}

.features {
  max-width: 1180px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 850px) {
  .top-nav {
    margin-bottom: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(29, 158, 117, .16), transparent 32%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(8, 80, 65, .14);
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-title {
  font-size: 36px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.auth-subtitle {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 11px;
  border-radius: 10px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.auth-tab.active {
  background: white;
  color: var(--green);
  box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 158, 117, .12);
}

.auth-button {
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
}

.auth-message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.setup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(29, 158, 117, .16), transparent 32%),
    var(--bg);
}

.setup-card {
  width: 100%;
  max-width: 560px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(8, 80, 65, .14);
}

.setup-title {
  font-size: 38px;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
}

.sidebar {
  background: white;
  border-right: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
}

.side-nav a.active,
.side-nav a:hover {
  background: var(--bg);
  color: var(--green);
}

.logout-btn {
  margin-top: auto;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-main {
  padding: 48px;
}

.dashboard-title {
  font-size: 48px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0;
}

.dash-card,
.dashboard-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(8, 80, 65, .08);
}

.dash-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.dash-card strong {
  font-size: 42px;
}

.dashboard-panel h2 {
  margin-bottom: 18px;
}

.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}