/* KMF Tech studio site - shared styles */
:root {
  --bg: #09141F;
  --bg-raised: #0F1F2E;
  --bg-card: #12253A;
  --line: #1E3548;
  --text: #F4F8F7;
  --muted: #9DB2BC;
  --accent: #55E6AD;
  --accent-deep: #266C56;
  --gold: #F4C96B;
  --danger: #FF8E83;
  --max: 1080px;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 20, 31, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}
.brand img.mark { background: none; }
.brand small {
  display: block;
  color: var(--accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin-top: 3px;
}
.nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) {
  .nav { display: none; }
}

/* Hero */
.hero { padding: 88px 0 64px; }
.hero .lede { font-size: 1.25rem; color: var(--muted); max-width: 640px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 40px; }
}

/* Buttons and pills */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #6FF0BC; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.pill::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.badge {
  display: inline-block;
  background: var(--accent-deep);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge-gold { background: #332B18; color: var(--gold); }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* App card (studio page) */
.app-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text);
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.app-card img { width: 96px; height: 96px; border-radius: 22px; }
.app-card h3 { font-size: 1.4rem; margin: 10px 0 4px; }
.app-card .meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.app-card .more { color: var(--accent); font-weight: 700; }
@media (max-width: 520px) {
  .app-card { grid-template-columns: 1fr; }
}

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 620px; }
.shots figure { margin: 0; }
.shots img {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  height: auto;
}
.shots figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 12px; text-align: center; }
.hero-shot { justify-self: center; max-width: 300px; margin: 0; }
.hero-shot img {
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  height: auto;
}

/* Pricing */
.price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #0C2726, var(--bg-card));
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 32px;
}
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
.price-box p { margin: 0; max-width: 520px; }

/* Prose (privacy page) */
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose p, .prose li { color: #D5DEE3; }
.prose ul { padding-left: 1.3em; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--bg-card); padding: 2px 6px; border-radius: 6px; }
.prose .effective { color: var(--muted); font-size: 0.95rem; margin-bottom: 2em; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; background: var(--bg-raised); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { color: var(--muted); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Utilities */
.small { font-size: 0.9rem; }
