/* ========== RESET & BASE ========== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body.nlc-body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0d1b1e;
  background: #f4f6f8;
  -webkit-font-smoothing: antialiased;
}

/* ========== LAYOUT ========== */

.nlc-main {
  max-width: 1120px;
  margin: 88px auto 40px;
  padding: 0 16px;
}

.nlc-hero-card {
  background: linear-gradient(135deg, #e6f6ee, #f9fffb);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 20px;
  border: 1px solid #d6eadf;
}

.hero-title {
  margin: 0 0 4px;
  font-size: 1.9rem;
  font-weight: 700;
  color: #14332a;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: #374c4b;
}

/* Cards */

.nlc-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  border: 1px solid #e0e5ea;
  box-shadow: 0 10px 25px rgba(15, 32, 24, 0.04);
}

/* Calculator / Analytics 2-col layout */

.calculator-layout,
.analytics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.calculator-column,
.analytics-column {
  min-width: 0;
}

@media (max-width: 900px) {
  .calculator-layout,
  .analytics-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========== HEADER / NAV ========== */

.nlc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #dde3e7;
  z-index: 20;
}

.nlc-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nlc-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.nlc-logo-main {
  font-weight: 700;
  font-size: 1.1rem;
  color: #14332a;
}

.nlc-logo-sub {
  font-size: 0.78rem;
  color: #678080;
}

.nlc-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nlc-nav-link {
  border: none;
  background: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 99px;
  color: #3c5353;
  cursor: pointer;
}

.nlc-nav-link:hover {
  background: #f1f6f3;
  color: #173a30;
}

.nlc-nav-link-active {
  background: #1e7e49;
  color: #ffffff;
  font-weight: 600;
}

.nlc-nav-link-muted {
  color: #8a9a9a;
}

.nlc-nav-desktop {
  display: flex;
}

.nlc-hamburger {
  display: none;
  font-size: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nlc-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 16px 10px;
  border-top: 1px solid #dde3e7;
  background: #ffffff;
}

.nlc-nav-mobile .nlc-nav-link {
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
}

/* Hidden utility */
.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .nlc-nav-desktop {
    display: none;
  }

  .nlc-hamburger {
    display: inline-flex;
  }

  .nlc-nav-mobile {
    display: flex;
  }
}

/* ========== TEXT / HEADINGS ========== */

h1,
h2,
h3 {
  color: #14332a;
}

h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

.card-lead,
.inline-note {
  font-size: 0.86rem;
  color: #516565;
}

.card-lead {
  margin-top: 0;
  margin-bottom: 14px;
}

/* ========== FORMS ========== */

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #23453b;
  margin-bottom: 4px;
}

.input-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.field {
  min-width: 0;
}

@media (max-width: 720px) {
  .input-row-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ccd4da;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1e7e49;
  box-shadow: 0 0 0 1px rgba(30, 126, 73, 0.2);
}

.error-text {
  font-size: 0.8rem;
  color: #b5342b;
  margin-top: 4px;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-icon {
  font-size: 1rem;
}

.btn-primary {
  background: #1e7e49;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 94, 52, 0.22);
}

.btn-primary:hover {
  background: #16643a;
}

.btn-secondary {
  background: #e7f2eb;
  color: #175036;
}

.btn-secondary:hover {
  background: #d7e8df;
}

.btn-tertiary,
.btn-outline {
  background: transparent;
  border: 1px solid #c2d0d0;
  color: #375252;
}

.btn-tertiary:hover,
.btn-outline:hover {
  background: #f4f6f7;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ========== CALCULATOR RESULTS ========== */

.result-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.result-total {
  font-size: 2.2rem;
  font-weight: 700;
  color: #14332a;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 0.76rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f4;
  color: #42575a;
}

.badge-accent {
  background: #def3e6;
  color: #145733;
  font-weight: 600;
}

.result-grid,
.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.result-item,
.analytics-item {
  padding: 10px;
  border-radius: 14px;
  background: #f6f8fa;
  border: 1px solid #e0e6eb;
}

.result-label {
  font-size: 0.78rem;
  color: #627473;
  margin-bottom: 2px;
}

.result-value {
  font-size: 1rem;
  font-weight: 600;
  color: #14332a;
}

@media (max-width: 720px) {
  .result-grid,
  .analytics-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========== ADD-ONS GRID ========== */

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.addon-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid #d5e1e0;
  background: #f9fbfb;
  font-size: 0.85rem;
}

.addon-pill span {
  display: inline-block;
}

.addon-price {
  font-weight: 600;
  color: #174b35;
}

@media (max-width: 720px) {
  .addons-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========== DOCS ========== */

.docs-content {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed #d4dedc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.docs-content h2,
.docs-content h3 {
  margin-top: 16px;
  margin-bottom: 4px;
}

.docs-content ul {
  padding-left: 20px;
}

/* ========== TABLE (JOBS) ========== */

.jobs-table-wrapper {
  margin-top: 12px;
  overflow-x: auto;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.jobs-table th,
.jobs-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #e0e6ea;
}

.jobs-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8a8a;
}

.jobs-table tbody tr:hover {
  background: #f7faf9;
}

/* Small action buttons in table */

.table-btn {
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #c9d6d5;
  background: #ffffff;
  cursor: pointer;
}

.table-btn:hover {
  background: #eef4f3;
}

/* ========== LOGIN CARD ========== */

.nlc-login-card {
  margin-top: 12px;
}

.nlc-calculator-card,
.nlc-docs-card,
.nlc-analytics-card {
  margin-top: 12px;
}

/* Utility spacing tweaks */

.nlc-calculator-card h2,
.nlc-docs-card h2,
.nlc-analytics-card h2 {
  margin-bottom: 4px;
}
