/* localkit docs — shared styles
   Works for index.html, privacy.html, and all tool doc pages */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0d0f;
  --bg-2:     #131316;
  --bg-3:     #1a1a1f;
  --border:   #2a2a35;
  --text:     #e8e8f0;
  --text-2:   #9090a8;
  --text-3:   #5a5a72;
  --accent:   #7c6af7;
  --green:    #3dd68c;
  --red:      #f75a5a;
  --yellow:   #f7c948;
  --radius:   8px;
  --sans:     system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

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

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.nav-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.12s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.12s !important;
  text-decoration: none !important;
}

.nav-cta:hover { background: #8f7ef9 !important; text-decoration: none !important; }

/* ── Page wrapper ── */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.page-wide {
  max-width: 1060px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 32px 64px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s, transform 0.1s;
  letter-spacing: -0.01em;
}

.btn-primary:hover { background: #8f7ef9; transform: translateY(-1px); text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.12s;
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Privacy badge ── */
.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  margin-top: 16px;
  opacity: 0.8;
}

/* ── Tool grid (homepage) ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 48px 0;
}

.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.12s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-icon svg { width: 18px; height: 18px; color: var(--accent); }

.tool-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.tool-card-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.tool-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: auto;
  width: fit-content;
}

.badge-free {
  background: rgba(61,214,140,0.1);
  color: var(--green);
  border: 1px solid rgba(61,214,140,0.2);
}

.badge-pro {
  background: rgba(124,106,247,0.1);
  color: var(--accent);
  border: 1px solid rgba(124,106,247,0.2);
}

/* ── Feature strip ── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 48px 0;
}

.feature-item {
  background: var(--bg-2);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.feature-item-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ── Section headers ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ── Doc page styles ── */
.doc-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.doc-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.doc-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 10px;
}

.doc-header p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}

.doc-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* Doc body */
.doc-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.doc-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.doc-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-2);
  margin: 24px 0 10px;
}

.doc-body p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.doc-body ul,
.doc-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-body li {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

.doc-body li strong { color: var(--text); }

/* Step cards */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-body { flex: 1; min-width: 0; }

.step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* Info boxes */
.info-box {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.info-box.tip  { background: rgba(61,214,140,0.07);  border: 1px solid rgba(61,214,140,0.2);  color: var(--text-2); }
.info-box.tip svg { color: var(--green); }
.info-box.note { background: rgba(124,106,247,0.07); border: 1px solid rgba(124,106,247,0.2); color: var(--text-2); }
.info-box.note svg { color: var(--accent); }
.info-box.warn { background: rgba(247,201,72,0.07);  border: 1px solid rgba(247,201,72,0.2);  color: var(--text-2); }
.info-box.warn svg { color: var(--yellow); }

/* Keyboard shortcut */
kbd {
  display: inline-block;
  padding: 2px 7px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
}

/* Table */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}

.doc-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.doc-table td {
  padding: 11px 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child   { color: var(--text); font-weight: 600; }
.doc-table                  { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

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

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
