/*
Theme Name: CodeMason
Theme URI: https://CodeMason.demewebsolutions.com
Author: My Deme, LLC
Author URI: https://demewebsolutions.com
Description: Lightweight CodeMason™ product website theme — WordPress gateway for discovery and membership. Editor lives at /app/.
Version: 0.9.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
Text Domain: codemason
*/

/* Tokens shared with CodeMason / TruAi product language (marketing-readable, not identical to the app glass shell) */
:root {
  --cm-blue: #1ea7ff;
  --cm-text: #e8e9eb;
  --cm-muted: #a0a0a0;
  --cm-muted2: #696969;
  --cm-border: rgba(255, 255, 255, 0.12);
  --cm-bg0: #0b0d11;
  --cm-bg1: #17191d;
  --cm-bg2: #292929;
  --cm-glass: rgba(255, 255, 255, 0.06);
  --cm-radius: 14px;
  --cm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --cm-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --cm-max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cm-text);
  font-family: var(--cm-font);
  line-height: 1.55;
  background:
    radial-gradient(1000px 520px at 50% 105%, rgba(30, 167, 255, 0.14), transparent 62%),
    linear-gradient(180deg, var(--cm-bg2) 0%, var(--cm-bg1) 45%, var(--cm-bg0) 100%);
}

a { color: var(--cm-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--cm-border);
  background: rgba(11, 13, 17, 0.88);
  backdrop-filter: blur(12px);
}

.site-header-inner,
.site-footer-inner,
.site-main {
  width: min(var(--cm-max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  flex: 0 0 auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--cm-blue);
  border: 1px solid rgba(30, 167, 255, 0.4);
  background: linear-gradient(145deg, rgba(30, 167, 255, 0.12), rgba(0, 0, 0, 0.25));
}

.brand span { color: var(--cm-blue); }
.brand .tm { color: var(--cm-muted2); font-size: 0.7em; vertical-align: super; }

.sr-brand {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.nav a {
  color: var(--cm-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--cm-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cm-text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: #fff;
  text-decoration: none;
  border-color: rgba(30, 167, 255, 0.45);
  background: rgba(30, 167, 255, 0.12);
}

.btn-primary {
  color: #fff;
  border-color: var(--cm-blue);
  background: linear-gradient(180deg, rgba(30, 167, 255, 0.4), rgba(30, 167, 255, 0.18));
}

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 em {
  font-style: normal;
  color: var(--cm-blue);
  display: block;
}

.hero-lede {
  margin: 18px 0 0;
  max-width: 36rem;
  color: var(--cm-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.section {
  padding: 40px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 650;
}

.section p { color: var(--cm-muted); max-width: 42rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.card {
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  background: var(--cm-glass);
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cm-muted);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.92rem;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid var(--cm-border);
  padding: 12px 14px;
  text-align: center;
}

.pricing-table th:first-child,
.pricing-table td:first-child { text-align: left; }

.pricing-table thead th {
  background: rgba(0, 0, 0, 0.28);
  font-weight: 650;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--cm-border);
  background: rgba(0, 0, 0, 0.28);
  padding: 28px 0 36px;
  font-size: 12px;
  color: var(--cm-muted2);
  line-height: 1.5;
}

.site-footer strong { color: #a0a0a0; }

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.site-footer-nav a { color: var(--cm-muted); }

.content-page {
  padding: 40px 0 64px;
}

.content-page .entry-title {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 650;
}

.content-page .entry-content {
  color: var(--cm-muted);
  max-width: 42rem;
}

.content-page .entry-content h2,
.content-page .entry-content h3 { color: var(--cm-text); }

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .nav { width: 100%; }
}
