/* Zero Control pages: layout on top of the main site's /styles/main.css (same tokens, fonts, theme). */
.zm-container { max-width: 800px; margin: 0 auto; padding: 100px 24px 60px; min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 10; }
.nav-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 40px; gap: 16px; }
.brand { font-family: var(--font-mono); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--text); }
.brand span { color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.back-btn, .nav-links a { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.back-btn:hover, .nav-links a:hover { color: var(--text); }
h1 { font-size: 48px; letter-spacing: -0.04em; margin: 0 0 16px; font-weight: 700; line-height: 1; color: var(--text); }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 48px; text-transform: uppercase; letter-spacing: 0.05em; }
h2 { font-size: 20px; font-weight: 600; margin: 40px 0 16px 0; border-bottom: 1px solid var(--border); padding-bottom: 12px; color: var(--text); }
h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
p, li { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
p { margin: 0 0 24px; }
ul { margin: 0 0 24px; padding-left: 20px; }
li { margin-bottom: 8px; }
strong { color: var(--text); font-weight: 600; }
a { color: var(--text); text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }

/* Home */
.hero { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.hero h1 { margin: 0; }
.zm-lead { font-size: 18px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.btn { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.2s, opacity 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--border-hover); }
.section-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 20px; padding-top: 16px; position: relative; }
.section-label::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px; background: #f97316; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 56px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature svg { width: 20px; height: 20px; color: #f97316; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; }
.note { font-size: 13px; }

.table-scroll { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.zm-footer { margin-top: auto; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.zm-footer a { color: var(--text-muted); text-decoration: none; margin-left: 16px; }
.zm-footer a:first-child { margin-left: 0; }
.zm-footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .zm-container { padding-top: 48px; }
  h1 { font-size: 38px; }
  .app-icon { width: 56px; height: 56px; border-radius: 14px; }
  .nav-links .hide-sm { display: none; }
}

/* Download buttons appear only on Android; a PC or laptop never sees them. */
html:not(.android) .android-only { display: none !important; }
html.android .desktop-only { display: none; }
.nav-links a.get-app { color: var(--bg); background: var(--text); padding: 8px 12px; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.nav-links a.get-app:hover { color: var(--bg); opacity: 0.85; }
.version { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin: -40px 0 56px; }

/* Release notes */
.release { border-bottom: 1px solid var(--border); padding: 8px 0 16px; }
.release:last-child { border-bottom: 0; }
.release h2 { display: flex; align-items: center; gap: 12px; border-bottom: 0; padding-bottom: 0; margin: 28px 0 4px; }
.release .date { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.release ul ul { margin: 8px 0 0; }
.badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f97316; border: 1px solid #f97316; border-radius: 4px; padding: 2px 6px; }

/* Phones: the page name on the left, the download button at the top right. */
@media (max-width: 600px) {
  .nav-top { flex-wrap: nowrap; }
  .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-links { flex: none; }
  .back-btn { display: none !important; }
}

/* Zero Control additions */
.os-note { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; opacity: 0.7; margin-top: 0.6rem; }
.other-os { margin-top: 0.9rem; font-size: 0.9rem; }
.other-os a { margin-right: 1rem; }
.steps { display: none; margin-top: 1.2rem; padding: 1rem 1.2rem; border: 1px solid rgba(61, 219, 192, 0.25); border-radius: 12px; }
.steps.show { display: block; }
.steps code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; word-break: break-all; }
