/* ================================================
   Fiscocaos — site.css
   Palette: white bg, black text, zinc neutrals
   Bold/minimal — consistent with app light mode
   ================================================ */

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

/* === BASE === */
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #09090b;
  line-height: 1.6;
}
a { color: #09090b; text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.6; }

/* === LAYOUT === */
.container { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }

/* === BREADCRUMB NAV === */
nav { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 13px; color: #71717a; }
nav a { color: #71717a; text-decoration: none; }
nav a:hover { color: #09090b; opacity: 1; }

/* === BACK-LINK HEADER (privacy-policy) === */
header { margin-bottom: 48px; }
a.back { display: inline-flex; align-items: center; gap: 6px; color: #71717a; font-size: 0.875rem; margin-bottom: 32px; text-decoration: none; }
a.back:hover { color: #09090b; opacity: 1; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px; color: #09090b; }
.lead { font-size: 1.1rem; color: #52525b; margin-bottom: 40px; line-height: 1.7; }
h2 { font-size: 1.2rem; font-weight: 800; color: #09090b; margin: 40px 0 14px; letter-spacing: -0.02em; }
p { color: #52525b; margin-bottom: 16px; }
ul { color: #52525b; padding-left: 20px; margin-bottom: 12px; }
ul li { margin-bottom: 6px; }
.meta { font-size: 0.875rem; color: #71717a; }
section { margin-bottom: 40px; }

/* === PILL BADGE === */
.badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: #f4f4f5;
  color: #52525b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #e4e4e7;
  color: #52525b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.share-btn:hover {
  border-color: #a1a1aa;
  color: #18181b;
}

/* === INLINE CODE BADGE === */
.code-badge {
  display: inline-block;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.8rem;
  font-family: monospace;
  color: #09090b;
}

/* === INFO CARDS === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.info-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.info-card .label { font-size: 11px; color: #71717a; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; margin-bottom: 6px; }
.info-card .value { font-size: 1.4rem; font-weight: 900; color: #09090b; letter-spacing: -0.02em; }
.info-card .sub { font-size: 12px; color: #71717a; margin-top: 4px; }
.info-card .note { font-size: 11px; color: #a1a1aa; margin-top: 3px; }
.info-card .note-warn { color: #b45309; font-weight: 600; }

/* === TABLES === */
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
thead th { background: #f4f4f5; color: #52525b; text-align: left; padding: 10px 14px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid #e4e4e7; }
tbody td { padding: 11px 14px; border-bottom: 1px solid #f4f4f5; color: #09090b; }
tbody tr:last-child td { border-bottom: none; }
.highlight td { font-weight: 700; }

/* === CTA BOX === */
.cta-box {
  background: #09090b;
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}
.cta-box h3 { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 8px; letter-spacing: -0.03em; }
.cta-box p { color: #a1a1aa; margin-bottom: 24px; font-size: 14px; }
.cta-btn {
  display: inline-block;
  background: #fff;
  color: #09090b;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  transition: opacity 0.15s;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.cta-btn:hover { opacity: 0.85; }

/* === RELATED LINKS === */
.related { margin-top: 48px; }
.related ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 0; }
.related li::before { content: "→ "; color: #71717a; }
.related a { text-decoration: none; color: #09090b; }
.related a:hover { text-decoration: underline; opacity: 1; }

/* === STEP LIST === */
.step-list { counter-reset: steps; list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 16px 0; padding: 0; }
.step-list li { counter-increment: steps; display: flex; gap: 12px; }
.step-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: #09090b;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  flex-shrink: 0;
}
.step-list li span { color: #52525b; }

/* === WARNING / NOTE BOX === */
.warning {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-left: 3px solid #09090b;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #52525b;
}

/* === CALLOUT BOX (privacy highlight) === */
.callout {
  background: #f4f4f5;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.callout p { margin-bottom: 0; color: #09090b; }

/* === CHANGELOG: ENTRIES === */
.entry { border-left: 2px solid #e4e4e7; padding-left: 24px; margin-bottom: 40px; position: relative; }
.entry::before { content: ""; position: absolute; left: -5px; top: 8px; width: 8px; height: 8px; background: #09090b; border-radius: 50%; }
.entry-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.entry-date { font-size: 13px; color: #71717a; font-weight: 600; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag-formula, .tag-feature, .tag-fix { background: #f4f4f5; color: #52525b; border: 1px solid #e4e4e7; }
.entry-title { font-size: 1.05rem; font-weight: 800; color: #09090b; margin-bottom: 6px; letter-spacing: -0.01em; }
.entry-body { font-size: 14px; color: #52525b; }
.entry-body ul { padding-left: 20px; margin-top: 6px; }
.entry-body li { margin-bottom: 4px; }

/* === FAQ SECTION === */
.faq { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.faq-item { border: 1px solid #e4e4e7; border-radius: 10px; padding: 18px 20px; }
.faq-item dt { font-weight: 800; color: #09090b; margin-bottom: 8px; font-size: 0.95rem; letter-spacing: -0.01em; }
.faq-item dd { color: #52525b; font-size: 14px; margin: 0; line-height: 1.7; }

/* === FOOTER === */
footer { margin-top: 64px; padding-top: 24px; border-top: 1px solid #e4e4e7; font-size: 13px; color: #71717a; }
footer a { color: #71717a; text-decoration: none; }
footer a:hover { color: #09090b; }
footer.row { display: flex; gap: 16px; flex-wrap: wrap; }
