/* Girafana — girafana.app
   Zero third-party fonts, zero tracking, native Apple observability aesthetic. */

:root {
  --bg: #0c0d10;
  --bg-elevated: #14161b;
  --bg-card: #181b22;
  --bg-subtle: #20242e;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-muted: #9ca3b2;
  --text-faint: #6c7383;
  --accent: #f0a23f;
  --accent-strong: #d9822b;
  --accent-soft: rgba(240, 162, 63, 0.14);
  --accent-border: rgba(240, 162, 63, 0.34);
  --green: #38be6d;
  --green-soft: rgba(56, 190, 109, 0.15);
  --yellow: #edb92e;
  --orange: #f08c2e;
  --red: #e84d47;
  --red-soft: rgba(232, 77, 71, 0.15);
  --blue: #429ef2;
  --teal: #26b8b8;
  --teal-soft: rgba(38, 184, 184, 0.15);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.48);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f9;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #eef0f4;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.16);
    --text: #11141a;
    --text-muted: #525a6a;
    --text-faint: #7b8496;
    --accent: #d9822b;
    --accent-strong: #bd6c1c;
    --accent-soft: rgba(217, 130, 43, 0.12);
    --accent-border: rgba(217, 130, 43, 0.36);
    --green: #1f9d52;
    --green-soft: rgba(31, 157, 82, 0.12);
    --red: #d43832;
    --red-soft: rgba(212, 56, 50, 0.12);
    --blue: #2078d4;
    --teal: #118c8c;
    --teal-soft: rgba(17, 140, 140, 0.12);
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

a:hover {
  text-decoration: underline;
}

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

code, pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.88em;
  background: var(--bg-subtle);
  padding: 0.15em 0.42em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 12px 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #12100d;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-border);
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
  border-radius: 10px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px auto auto 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 440px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero p.lead {
  margin: 0 auto 28px;
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: var(--green); }
.dot-orange { background: var(--accent); }
.dot-teal { background: var(--teal); }
.dot-red { background: var(--red); }

/* Native Dashboard Showcase Mock */
.showcase-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 276px;
  gap: 18px;
  align-items: stretch;
}

.mac-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mac-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-subtle) 55%, var(--bg-elevated));
  gap: 12px;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.traffic-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.tl-red { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green { background: #28c840; }

.window-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pill-green {
  background: var(--green-soft);
  color: var(--green);
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.pill-red {
  background: var(--red-soft);
  color: var(--red);
}

.mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 13px;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-val {
  font-size: 1.32rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stat-val.green { color: var(--green); }
.stat-val.accent { color: var(--accent); }

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 12px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-title {
  font-size: 0.86rem;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-svg {
  width: 100%;
  height: 150px;
  display: block;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
}

.widget-tile {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-tile small {
  font-size: 0.67rem;
  color: var(--text-muted);
  font-weight: 600;
}

.widget-tile strong {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.menubar-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: var(--shadow);
}

.menubar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.menubar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-header {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Why Not Official App Comparison */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}

.compare-card.featured {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-card)), var(--bg-card));
}

.compare-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-card .sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
}

.check-list .mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  margin-top: 2px;
}

.mark-yes {
  background: var(--green-soft);
  color: var(--green);
}

.mark-no {
  background: var(--red-soft);
  color: var(--red);
}

/* Bento Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.feature-card h3 {
  margin: 4px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-card)), var(--bg-card));
  box-shadow: var(--shadow);
}

.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-card h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 700;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price-amount span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Tier Comparison Table */
.table-wrap {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-subtle) 55%, var(--bg-card));
}

.spec-table td:nth-child(2),
.spec-table td:nth-child(3),
.spec-table th:nth-child(2),
.spec-table th:nth-child(3) {
  width: 26%;
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Prose / Subpages (Privacy & Docs) */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
}

.prose {
  padding-bottom: 64px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  margin-right: 10px;
}

.step-card h3 {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
}

.kbd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kbd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--text-faint);
  font-size: 0.86rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
}

.disclaimer {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 960px) {
  .showcase-wrap {
    grid-template-columns: 1fr;
  }
  .side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .side-stack,
  .compare-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .section {
    padding: 48px 0;
  }
}
