/* CommandShelf marketing site — matches the desktop app's light, neutral aesthetic. */
:root {
  --bg: #f6f6f6;
  --panel: #ffffff;
  --panel-subtle: #f0f0f0;
  --text: #171717;
  --text-muted: #5c5c5c;
  --text-faint: #8a8a8a;
  --border: #e2e2e2;
  --border-strong: #cfcfcf;
  --code-bg: #1c1c1c;
  --code-text: #f4f4f4;
  --accent: #171717;
  --accent-text: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 6%), 0 6px 20px rgb(0 0 0 / 5%);
  --shadow-lg: 0 24px 70px rgb(0 0 0 / 12%);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 246 246 / 82%);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { text-decoration: none; color: var(--text-muted); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--panel-subtle); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 550;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.04s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel-subtle); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 auto 18px;
  max-width: 16ch;
}
.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--text-faint); }

/* ---------- terminal mock ---------- */
.shot {
  margin: 56px auto 0;
  max-width: 860px;
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #2a2a2a;
}
.shot-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #2a2a2a; }
.shot-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3a; }
.shot-bar span:nth-child(1) { background: #ff5f57; }
.shot-bar span:nth-child(2) { background: #febc2e; }
.shot-bar span:nth-child(3) { background: #28c840; }
.shot pre {
  margin: 0;
  padding: 22px 24px;
  color: var(--code-text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  text-align: left;
}
.shot .c-prompt { color: #28c840; }
.shot .c-cmd { color: #f4f4f4; }
.shot .c-flag { color: #febc2e; }
.shot .c-out { color: #9a9a9a; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card .ico { font-size: 22px; margin-bottom: 14px; display: block; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; align-items: start; }
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--text); box-shadow: var(--shadow-lg); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 720; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-faint); }
.plan .sub { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }
.feat { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.feat li { display: flex; gap: 10px; font-size: 15px; color: var(--text); align-items: flex-start; }
.feat li::before { content: "✓"; color: #1a7f37; font-weight: 700; }
.feat li.no { color: var(--text-faint); }
.feat li.no::before { content: "–"; color: var(--text-faint); }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.step .n {
  counter-increment: step; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); display: inline-flex;
  align-items: center; justify-content: center; font-weight: 650; font-size: 14px; margin-bottom: 12px;
}
.step .n::before { content: counter(step); }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- generic prose (privacy/terms/activate) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { text-align: left; max-width: none; font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.prose .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 36px; }
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 38px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-muted); }
.prose code { background: var(--panel-subtle); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; font-family: ui-monospace, Menlo, monospace; color: var(--text); }
.prose pre { background: var(--code-bg); color: var(--code-text); padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: transparent; color: inherit; padding: 0; }
.callout { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 22px 0; }
.callout p { margin: 0; color: var(--text); }

/* ---------- CTA band ---------- */
.band { background: var(--accent); color: var(--accent-text); border-radius: var(--radius-lg); padding: 52px 32px; text-align: center; margin: 24px 0; }
.band h2 { color: #fff; font-size: clamp(26px, 4vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.band p { color: #c9c9c9; margin: 0 0 26px; font-size: 17px; }
.band .btn-primary { background: #fff; color: #111; }
.band .btn-primary:hover { background: #eee; }
.band .btn-ghost { background: transparent; color: #fff; border-color: #444; }
.band .btn-ghost:hover { background: #ffffff14; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 36px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer .brand { font-weight: 600; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--text-faint); font-size: 13px; width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
}
