/* cmdv.dev — shared styles */
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-2: #5c5c58;
  --text-3: #8a8a85;
  --line: rgba(0,0,0,.08);
  --accent: #1a1a1a;
  --nine: #3a73b0;
  --nine-soft: #e6eef8;
  --fern: #3f7a4c;
  --fern-soft: #e8f1ea;
  --radius: 20px;
  --max: 68rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101110;
    --surface: #1a1c1a;
    --text: #f0f0ec;
    --text-2: #a7a9a3;
    --text-3: #71736e;
    --line: rgba(255,255,255,.09);
    --accent: #f0f0ec;
    --nine: #7fb0e8;
    --nine-soft: #172230;
    --fern: #7cc57f;
    --fern-soft: #16231a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--text-2); max-width: 36em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 42rem; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.nav .brand { font-weight: 700; text-decoration: none; letter-spacing: -0.02em; font-size: 1.05rem; }
.nav .brand span { color: var(--text-3); font-weight: 500; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.brand) { text-decoration: none; color: var(--text-2); font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* hero */
.hero { padding: 4rem 0 3rem; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.12); margin-bottom: 1.5rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .98rem;
  background: var(--accent); color: var(--bg); border: 1px solid transparent;
}
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.nine { background: var(--nine); color: #fff; }
.btn.fern { background: var(--fern); color: #fff; }
.btn.soon { opacity: .6; cursor: default; }
.note { color: var(--text-3); font-size: .9rem; }

/* pills / badges */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.pills li { font-size: .85rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); }

/* sections */
section { padding: 3rem 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 650; color: var(--text-3); margin-bottom: .75rem; }
.nine .eyebrow { color: var(--nine); }
.fern .eyebrow { color: var(--fern); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card p { color: var(--text-2); margin-bottom: 0; font-size: .98rem; }
.card .glyph { font-size: 1.6rem; margin-bottom: .75rem; line-height: 1; }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .96rem; }
th, td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-3); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.table-wrap { overflow-x: auto; }

/* app cards on home */
.apps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: 2rem; }
.app-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 2rem; transition: transform .15s ease, box-shadow .15s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.app-card img { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.app-card h2 { margin-bottom: .35rem; }
.app-card .tag { color: var(--text-3); font-size: .9rem; margin-bottom: .75rem; }
.app-card p { color: var(--text-2); margin: 0; }
.app-card .more { margin-top: 1.25rem; font-weight: 600; font-size: .95rem; }
.app-card.nine .more { color: var(--nine); }
.app-card.fern .more { color: var(--fern); }

/* prose (privacy pages) */
.prose { padding: 2.5rem 0 4rem; }
.prose h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2.25rem; }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--text-3); font-style: italic; margin-bottom: 2rem; }
.prose ul { padding-left: 1.25rem; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--text-3); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer a { color: var(--text-2); text-decoration: none; margin-right: 1.25rem; }
footer a:hover { color: var(--text); }

@media (max-width: 40rem) {
  .hero { padding: 2.5rem 0 2rem; }
  .nav ul { gap: .9rem; }
}
