/* ============================================================
   PARSIMONY ERP — World's Best ERP Landing
   Liquid Intelligence tokens aligned with parsimony.com
   ============================================================ */

:root {
  --canvas: #FAFAF8;
  --canvas-alt: #F0F5F5;
  --surface: #FFFFFF;
  --ink: #1A2E2F;
  --ink-soft: #3D6B70;
  --ink-muted: #7AA4A8;
  --teal: #0E9CA8;
  --teal-dark: #0A7A83;
  --teal-darker: #075E66;
  --teal-light: #E8F5F6;
  --teal-mid: #B2E4E8;
  --amber: #F5B544;
  --amber-dark: #D99A2B;
  --gold-light: #FEF3DC;
  --midnight: #0A1F24;
  --line: rgba(26, 46, 47, 0.1);
  --line-soft: rgba(26, 46, 47, 0.06);
  --shadow: 0 20px 50px rgba(10, 31, 36, 0.08);
  --shadow-lg: 0 32px 80px rgba(10, 31, 36, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --winner: #0E9CA8;
  --win-glow: rgba(14, 156, 168, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 90% -8%, rgba(14, 156, 168, 0.12), transparent 55%),
    radial-gradient(700px 400px at -5% 20%, rgba(245, 181, 68, 0.08), transparent 55%);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section { padding: 88px 0; position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 48px);
  max-width: 18ch;
}

.section-lede {
  font-size: 18.5px;
  max-width: 58ch;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(250, 250, 248, 0.86);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo img { height: 28px; width: auto; }
.logo:hover { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--teal-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--midnight);
  box-shadow: 0 8px 24px rgba(245, 181, 68, 0.35);
}
.btn-primary:hover { color: var(--midnight); box-shadow: 0 12px 28px rgba(245, 181, 68, 0.45); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { color: var(--teal-dark); border-color: var(--teal-mid); }
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 156, 168, 0.28);
}
.btn-teal:hover { color: #fff; background: var(--teal-dark); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold-light);
  color: var(--amber-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 1px solid rgba(245, 181, 68, 0.35);
}
.hero-badge .crown { font-size: 14px; }

.hero h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  max-width: 14ch;
  margin: 0 auto 22px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-darker) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 48ch;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-winner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px solid var(--teal-mid);
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--win-glow), var(--shadow);
  margin: 0 auto;
}
.hero-winner img { height: 26px; width: auto; }
.hero-winner strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}
.hero-winner span {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

/* ---------- Score strip ---------- */
.score-strip {
  padding: 0 0 40px;
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.score-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.score-card .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.score-card .label {
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ---------- Comparison table ---------- */
.compare {
  background: var(--canvas-alt);
  border-block: 1px solid var(--line-soft);
}

.compare-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-size: 14.5px;
}

.compare-table th,
.compare-table td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.compare-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--midnight);
  color: #E8F5F6;
  position: sticky;
  top: 0;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  padding-left: 22px;
  font-weight: 500;
  color: var(--ink);
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  min-width: 160px;
}

.compare-table th:first-child {
  background: var(--midnight);
  color: #E8F5F6;
  z-index: 2;
}

.compare-table th.col-winner,
.compare-table td.col-winner {
  background: linear-gradient(180deg, rgba(14, 156, 168, 0.12) 0%, rgba(14, 156, 168, 0.06) 100%);
  box-shadow: inset 0 0 0 2px var(--teal);
  position: relative;
}

.compare-table th.col-winner {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  box-shadow: none;
}

.compare-table td.col-winner {
  font-weight: 600;
  color: var(--teal-darker);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td:not(.col-winner) { background: rgba(14, 156, 168, 0.03); }
.compare-table tr:hover td:first-child { background: var(--teal-light); }
.compare-table tr:hover td.col-winner {
  background: linear-gradient(180deg, rgba(14, 156, 168, 0.18) 0%, rgba(14, 156, 168, 0.1) 100%);
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--midnight);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.cell-yes { color: var(--teal-dark); font-weight: 600; }
.cell-no { color: #B45353; }
.cell-mid { color: var(--ink-muted); }
.score-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-family: var(--font-display);
}
.score-bar .dots {
  display: flex;
  gap: 3px;
}
.score-bar .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.score-bar .dots i.on { background: var(--teal); }
.col-winner .score-bar .dots i.on { background: var(--teal-dark); }
.col-winner .score-bar .dots i { background: rgba(14, 156, 168, 0.25); }
.col-winner .score-bar .dots i.on { background: var(--teal-darker); }

/* ---------- ERP cards ---------- */
.erp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.erp-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.erp-card:hover {
  border-color: var(--teal-mid);
  transform: translateY(-2px);
}

.erp-card.winner {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #0A1F24 0%, #0E3A40 55%, #0A7A83 100%);
  border: none;
  color: #fff;
  box-shadow: 0 24px 60px rgba(14, 156, 168, 0.28);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.erp-card.winner::after {
  content: "WINNER";
  position: absolute;
  top: 22px;
  right: -28px;
  transform: rotate(35deg);
  background: var(--amber);
  color: var(--midnight);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 40px;
}
.erp-card.winner h3,
.erp-card.winner p { color: #E8F5F6; }
.erp-card.winner .erp-rank { color: var(--amber); }
.erp-card.winner .tag {
  background: rgba(245, 181, 68, 0.18);
  color: var(--amber);
  border-color: rgba(245, 181, 68, 0.3);
}
.erp-card.winner .erp-link { color: var(--amber); }
.erp-card.winner .erp-link:hover { color: #fff; }
.erp-card.winner .pros li::marker { color: var(--amber); }

.erp-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.erp-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.erp-card h3 {
  font-size: 22px;
  margin: 0;
}
.erp-card p { margin: 0; font-size: 15px; }
.erp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid var(--teal-mid);
}
.tag.neutral {
  background: var(--canvas-alt);
  color: var(--ink-soft);
  border-color: var(--line);
}
.pros, .cons {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.erp-card.winner .pros,
.erp-card.winner .cons { color: rgba(232, 245, 246, 0.88); }
.pros li, .cons li { margin-bottom: 4px; }
.pros { color: var(--teal-darker); }
.cons { color: #8B4A4A; }
.erp-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.erp-link svg { width: 14px; height: 14px; }

/* ---------- Why winner ---------- */
.why {
  background: var(--midnight);
  color: #E8F5F6;
}
.why .eyebrow { color: var(--amber); }
.why h2 { color: #fff; max-width: 16ch; }
.why .section-lede { color: rgba(232, 245, 246, 0.72); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 26px;
}
.why-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(14, 156, 168, 0.2);
  color: var(--teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.why-card h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.why-card p {
  color: rgba(232, 245, 246, 0.7);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Keyword hub ---------- */
.keywords {
  background: var(--canvas);
}
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.keyword-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(10, 31, 36, 0.04);
  transition: all 0.15s ease;
}
.keyword-cloud a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-light);
  transform: translateY(-1px);
}
.keyword-cloud a strong {
  color: var(--teal-dark);
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Blog teaser ---------- */
.blog-teaser {
  background: var(--canvas-alt);
  border-top: 1px solid var(--line-soft);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-mid);
}
.blog-card .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.blog-card h3 {
  font-size: 18px;
  margin: 0;
}
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--teal-dark); }
.blog-card p {
  font-size: 14.5px;
  margin: 0;
  flex: 1;
}
.blog-card .read {
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-dark);
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 100%, rgba(14, 156, 168, 0.15), transparent 70%),
    var(--canvas);
}
.cta h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  max-width: 16ch;
  margin: 0 auto 16px;
}
.cta p {
  max-width: 42ch;
  margin: 0 auto 32px;
  font-size: 18px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: rgba(232, 245, 246, 0.7);
  padding: 48px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}
.site-footer a { color: rgba(232, 245, 246, 0.85); }
.site-footer a:hover { color: var(--amber); }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer .logo img { filter: brightness(0) invert(1); opacity: 0.95; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(232, 245, 246, 0.5);
}

/* ---------- Blog pages ---------- */
.page-hero {
  padding: 56px 0 32px;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  max-width: 20ch;
}
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.article h2 {
  font-size: 28px;
  margin-top: 2em;
}
.article h3 {
  font-size: 20px;
  margin-top: 1.6em;
}
.article p, .article li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}
.article a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article .callout {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: 18px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
}
.article .callout p { margin: 0; color: var(--ink); }
.article .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.article .toc ol { margin: 8px 0 0; padding-left: 20px; }
.article .toc a { text-decoration: none; font-weight: 500; }

/* ---------- 404 ---------- */
.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}
.not-found h1 { font-size: 64px; color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .erp-grid { grid-template-columns: 1fr; }
  .erp-card.winner { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-winner { flex-direction: column; border-radius: var(--radius); text-align: center; }
  .hero-winner span { border: none; padding: 0; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .score-grid { grid-template-columns: 1fr 1fr; }
  .btn-lg { width: 100%; }
}
