/* Nempra Software — shared site styles */

:root {
  --ink: #14231c;
  --ink-soft: #47584f;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --line: #e2e1da;
  --brand: #1f6f4f;
  --brand-dark: #14503a;
  --brand-soft: #e7f2ec;
  --accent: #c96a2c;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--brand-dark); }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
}
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.main a:hover { color: var(--brand-dark); }
nav.main a.current { color: var(--brand-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn.small { padding: 7px 14px; font-size: 0.85rem; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 1.7rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.section-lede { color: var(--ink-soft); max-width: 620px; margin: 0 0 32px; }
.section-lede.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.center { text-align: center; }

/* Product cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.product-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.product-card .tag { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.product-card ul { padding-left: 20px; margin: 16px 0; color: var(--ink-soft); font-size: 0.94rem; }
.product-card ul li { margin-bottom: 6px; }
.product-card .cta-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* Feature comparison table */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table.compare th, table.compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.94rem;
}
table.compare th { background: #f3f2ed; font-weight: 700; }
table.compare td.center, table.compare th.center { text-align: center; }
table.compare tr:last-child td { border-bottom: none; }
.yes { color: var(--brand-dark); font-weight: 700; }
.no { color: #b6b2a6; }

/* Pricing */
.price-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.price-card > a.btn.ghost.small { margin-top: auto; }
.price-card h3 { margin: 0 0 4px; }
.price-card .sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 18px; min-height: calc(1.55em * 2); }
.price-tiers { list-style: none; margin: 0 0 18px; padding: 0; }
.price-tiers li { border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.price-tiers li:last-child { border-bottom: none; }
.price-tiers .amount { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tier-row {
  display: flex; width: 100%; justify-content: space-between; align-items: baseline;
  padding: 10px 4px; margin: 0 -4px; border: none; background: none; cursor: pointer;
  font: inherit; color: inherit; border-radius: 6px; transition: background 0.15s;
}
.tier-row:hover, .tier-row:focus-visible { background: var(--brand-soft); outline: none; }
.vat-note { margin: 0 0 12px; font-size: 0.78rem; color: var(--ink-soft); opacity: 0.85; }
.lite-card .btn { margin-top: auto; }

/* Waitlist */
.waitlist {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.waitlist h2 { color: #fff; }
.waitlist p { color: #eaf3ee; max-width: 560px; margin: 0 auto 22px; }
.waitlist .btn.primary { background: #fff; color: var(--brand-dark); }
.waitlist .btn.primary:hover { background: #f0ece2; }

/* Status badge */
.status-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  margin-bottom: 24px;
}
.status-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
footer.site .foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site nav a { color: var(--ink-soft); margin-right: 18px; text-decoration: none; }
footer.site nav a:hover { color: var(--brand-dark); }
.legal-line { margin-top: 4px; font-size: 0.82rem; opacity: 0.85; }
.legal-line a { color: inherit; }

/* Docs page */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.doc-list li h4 { margin: 0 0 4px; font-size: 1rem; }
.doc-list li p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Story / about */
.story {
  max-width: 720px;
  margin: 0 auto;
}
.story p { font-size: 1.04rem; color: var(--ink-soft); margin: 0 0 18px; }
.story p:last-child { margin-bottom: 0; }
.story p.lead { color: var(--ink); font-size: 1.12rem; }

/* Use-case chips */
.usecase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}
.usecase-row span {
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* FAQ accordion */
.faq-group { margin-bottom: 40px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { margin-bottom: 18px; }
details.faq-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  margin-bottom: 10px;
}
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--brand-dark);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 680px;
}

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  nav.main { display: none; }
  header.site .bar { justify-content: space-between; }
}
