/* Fonts + custom rules that Tailwind utilities can't easily express */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;450;500;600&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #FFFFFF;
  --ink: #0E0F11;
  --ink-2: #2A2D33;
  --ink-3: #6E7280;
  --line: #E7E2D6;
  --line-strong: #D9D2C0;
  --accent: #7E1818;
  --accent-ink: #FFFFFF;
  --good: #1F8A5B;
  --bad: #C24A2A;
  --warm: #F0E8D8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", system-ui, -apple-system, Segoe UI, sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-serif-i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.font-mono { font-family: "Geist Mono", ui-monospace, monospace; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Marquee animation */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 40s linear infinite; will-change: transform; }

/* Pulsing live dot */
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(126, 24, 24, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(126, 24, 24, 0); }
}
.live-dot { animation: livePulse 2s ease-in-out infinite; }

/* Hero gradient/grain */
.hero-grain {
  background-image:
    radial-gradient(800px 400px at 80% 0%, rgba(126,24,24,0.06), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(0,0,0,0.04), transparent 60%);
}

/* Dashboard mock */
.dash-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Geo grid for GMB demo */
.geo-cell {
  display: grid; place-items: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}
.geo-1 { background: #1F8A5B; color: #fff; }
.geo-2 { background: #4FA37E; color: #fff; }
.geo-3 { background: #BFD4C4; color: #1f2a25; }
.geo-4 { background: #E7E2D6; color: #6E7280; }
.geo-5 { background: #EFC8B5; color: #6b3925; }
.geo-6 { background: #C24A2A; color: #fff; }

/* Accordion */
.faq-item .faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item .faq-panel > div { overflow: hidden; }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .25s ease; display: inline-block; }

/* Tab visibility */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Lang link active */
.lang-btn[data-active="true"] { background: var(--ink); color: #fff; }

/* Brand mark */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Range input */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line-strong); border-radius: 2px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; cursor: pointer;
}

/* Sparkline curve */
.spark-curve { fill: none; stroke: var(--accent); stroke-width: 2; }
.spark-area  { fill: url(#g1); opacity: 0.5; }
.spark-grid  { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.spark-label { fill: rgba(255,255,255,0.5); font-family: "Geist Mono", monospace; font-size: 10px; }

@media print { .tweaks-panel { display: none !important; } }
