/* DMBox static site — shared styles.
 * Dark theme matching the cockpit aesthetic; no framework, no build step.
 * One file, mobile-friendly, ~6 KB.
 */

/* Tokens kept in sync with cockpit/src/styles/tokens.css and
 * cockpit/tailwind.config.js so the static site and the React app
 * read as one product. */
:root {
  --ink: #0d1117;
  --panel: #161b22;
  --panel-2: #1a1f29;
  --line: #30363d;
  --text: #d8dde7;
  --muted: #8a93a6;
  --accent: #7ee787;
  --accent-2: #56d364;
  --warn: #f78166;
  --emerald: #4ade80;
  --indigo: #818cf8;
  --amber: #fbbf24;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

header.site {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  background: var(--panel);
}

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

header.site .brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

header.site nav a {
  margin-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

header.site nav a:hover {
  color: var(--text);
}

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

footer.site .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.site a {
  color: var(--muted);
  margin-right: 1rem;
}

footer.site a:hover {
  color: var(--text);
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.125rem;
  margin: 1.25rem 0 0.5rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0.5rem 0 2rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  margin: 1rem 0;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.cta:hover {
  background: var(--accent-2);
  text-decoration: none;
}

.cta.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.cta.ghost:hover {
  background: var(--accent);
  color: var(--ink);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.tier h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.tier .price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
}

.tier .price small {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.tier ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.tier ul li {
  margin: 0.25rem 0;
}

.tier .badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  color: var(--ink);
  font-weight: 600;
}

.tier.free   .badge { background: var(--muted); }
.tier.hobby  .badge { background: var(--emerald); }
.tier.pro    .badge { background: var(--indigo); }
.tier.studio .badge { background: var(--amber); }

.notice {
  background: var(--panel-2);
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

code {
  background: var(--panel-2);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875em;
}

@media (max-width: 600px) {
  h1 { font-size: 1.75rem; }
  header.site nav a { margin-left: 0.75rem; font-size: 0.85rem; }
  .container { padding: 1rem; }
}
