:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --paper: #f7f4ee;
  --card: #fffdf9;
  --line: #e4ddd2;
  --accent: #8c3d2f;
  --accent-ink: #fff8f4;
  --ok: #2f6b45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

a { color: var(--accent); }

.site-header,
.site-footer,
main {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
}

.logo {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: 1rem;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.hero,
.principles,
.featured-products,
.store-page,
.product-page,
.about-page,
.enterprise-page {
  padding: 1rem 0 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.hero h1,
.store-page h1,
.product-page h1,
.about-page h1,
.enterprise-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  margin: 0.2rem 0 0.8rem;
}

.hero-eyebrow,
.lead,
.hero-sub,
.tier-for {
  color: var(--muted);
}

.hero-actions,
.featured-row,
.principles-grid,
.tiers-compare,
.oem-models {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary,
.btn-secondary,
.featured-card,
.tier-card,
.principle,
.about-block,
.oem-model,
.buyer-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-secondary { color: var(--ink); }

.hero-badge,
.smartware-badge,
.badge,
.status {
  display: inline-block;
}

.hero-badge {
  padding: 1rem;
  background: #efe8dc;
  border-radius: 12px;
}

.smartware-badge,
.badge {
  font: 600 0.75rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-card,
.principle,
.tier-card,
.about-block,
.oem-model,
.buyer-block {
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.featured-card {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.featured-card h3,
.principle h3,
.tier-card h2 { margin: 0.2rem 0; }

.price { font-weight: 700; }

.status { color: var(--ok); font: 600 0.85rem/1.2 system-ui, sans-serif; }

.principles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.about-sections,
.buyer-notes {
  display: grid;
  gap: 1rem;
}

.product-meta {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.35rem 1rem;
}

.product-meta dt { color: var(--muted); }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.product-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font: 0.85rem/1.4 system-ui, sans-serif;
}

.upgrade-table {
  width: 100%;
  border-collapse: collapse;
}

.upgrade-table th,
.upgrade-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  vertical-align: top;
}

.browse-all-link { display: inline-block; margin-top: 1rem; }

@media (max-width: 720px) {
  .hero,
  .principles-grid,
  .tiers-compare { grid-template-columns: 1fr; display: grid; }
  .site-header { align-items: flex-start; flex-direction: column; }
}
