/* ComSmitZ — shared stylesheet. Plain CSS, no build step. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1f2430;
  --muted: #5b6472;
  --accent: #0f6f5f;
  --accent-ink: #ffffff;
  --border: #dfe3e9;
  --radius: 10px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

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

/* Header / navigation */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--accent); }

.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--ink); background: #eceff3; }
.site-nav a.active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

/* Main content */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 0.5rem; }
.tagline { color: var(--muted); margin: 0 0 1.5rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.1); }

/* Downloads that are not open yet: real disabled buttons, not dead links */
.button:disabled,
.button:disabled:hover {
  background: #c7ccd4;
  color: #5b6472;
  cursor: not-allowed;
  filter: none;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: #eceff3;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h2 { margin-top: 0; font-size: 1.15rem; }

.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
}
.page h1 { margin-top: 0; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 0.35rem 0; }

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

/* Home product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.product-card img { border-radius: 8px; }
.product-card h2 { margin: 0; font-size: 1.2rem; }
.product-card p { margin: 0; color: var(--muted); flex-grow: 1; }
.product-card .meta, .product-page .meta { font-size: 0.85rem; color: var(--muted); }

/* Download tally on a released product's page. The number is written by hand in the HTML:
   this server only serves static files, so there is nothing to count downloads with. */
.download-count { margin: 0.5rem 0 0; font-size: 0.95rem; color: var(--muted); }
.download-count strong { color: var(--ink); }

/* Text logo placeholder (used until real artwork exists) */
.logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f6f5f, #1a9e88);
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
}
.logo-ph.big { width: 128px; height: 128px; font-size: 3rem; }

/* Assurance strip on home */
.assurances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.assurances h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.assurances p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Products table */
.product-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-table th, .product-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.product-table th { background: #eceff3; font-weight: 600; }
.product-table tr:last-child td { border-bottom: none; }
.button.small { padding: 0.35rem 0.8rem; font-size: 0.9rem; }
.note { color: var(--muted); font-size: 0.9rem; }

/* Product detail pages */
.product-head {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.product-head h1 { margin: 0 0 0.5rem; }
.feature-list ul { padding-left: 1.2rem; }

.screens { margin-top: 1.5rem; }
.screen-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.screen-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1rem;
}
.screen-frame img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #0b0e13;
}
.screen-frame img.tall { width: auto; max-width: min(100%, 460px); max-height: 680px; margin: 0 auto; }
/* Portrait app windows (LinguaMagnet is 720x820) need a bigger mat than the 420px default */
.screen-frame img.tallish { width: auto; max-width: min(100%, 620px); max-height: 760px; margin: 0 auto; }
.screen-frame figcaption {
  padding: 0.5rem 0.8rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
  background: #eceff3;
  padding: 0.05em 0.3em;
  border-radius: 4px;
}
.screen-frame.placeholder {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, #f2f4f7, #f2f4f7 12px, #eceff3 12px, #eceff3 24px);
}

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Small screens: collapse the nav behind the Menu button */
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
}
