:root {
  --bg: #14171C;
  --surface: #1C2029;
  --surface-2: #20242E;
  --border: #2A3040;
  --text: #EDEFF2;
  --text-dim: #8B92A0;
  --accent: #F5A623;
  --accent-dim: #F5A62322;
  --active: #3ECF8E;
  --active-dim: #3ECF8E1a;
  --danger: #FF5F56;
  --radius: 10px;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 34ch; }
h3 { font-size: 1.15rem; }

p { color: var(--text-dim); margin: 0 0 16px; max-width: 62ch; }

.mono { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(20, 23, 28, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 0 3px var(--active-dim);
  flex-shrink: 0;
}

.topnav {
  display: flex;
  gap: 28px;
}

.topnav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

/* ---------- Hero ---------- */

.hero { padding: 88px 0 96px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-sub { font-size: 1.08rem; max-width: 48ch; }

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #1A1300;
}
.btn-primary:hover { filter: brightness(1.07); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-dim); }

.btn-block { width: 100%; }

.btn-compact {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* Signature element: a looping radar/pulse — the one deliberate motion
   moment on the page, echoing the extension's own status indicator. */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.radar {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: radar-pulse 3.6s ease-out infinite;
}

.radar-ring-1 { width: 60px; height: 60px; animation-delay: 0s; }
.radar-ring-2 { width: 60px; height: 60px; animation-delay: 1.2s; }
.radar-ring-3 { width: 60px; height: 60px; animation-delay: 2.4s; }

.radar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 24px 4px var(--active-dim);
  z-index: 1;
}

@keyframes radar-pulse {
  0%   { width: 60px; height: 60px; opacity: 0.9; }
  100% { width: 220px; height: 220px; opacity: 0; }
}

.radar-caption { color: var(--text-dim); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .radar-ring { animation: none; opacity: 0.35; width: 140px; height: 140px; }
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }
.section-sub { font-size: 1.05rem; max-width: 52ch; }

/* ---------- How it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.how-num {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.how-item p { font-size: 0.98rem; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 760px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card-featured {
  border-color: var(--accent);
}

.price-figures {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 6px;
  color: var(--text);
}

.price-amount { font-size: 1.5rem; font-weight: 500; }
.price-unit { color: var(--text-dim); font-size: 0.9rem; }
.price-or { color: var(--text-dim); font-size: 0.85rem; margin: 0 2px; }

.price-quota { font-size: 0.92rem; color: var(--text-dim); margin: 0; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-dim);
  flex-grow: 1;
}

.price-list li {
  padding-left: 18px;
  position: relative;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--active);
}

.price-footnote {
  margin-top: 28px;
  font-size: 0.88rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

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

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  font-family: var(--mono);
}

.faq-item[open] summary::after { content: "–"; }

.faq-body {
  padding-top: 14px;
  font-size: 0.96rem;
}

.faq-body p, .faq-body ol { color: var(--text-dim); }
.faq-body ol { padding-left: 20px; }
.faq-body li { margin-bottom: 6px; }

/* ---------- Contact ---------- */

.tally-frame-wrap {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  max-width: 640px;
  overflow: hidden;
}

.tally-frame-wrap iframe {
  display: block;
  background: #fff;
  border-radius: 11px;
}

.tally-fallback {
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-nav { display: flex; gap: 20px; }
.footer-nav a { text-decoration: none; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .topnav { gap: 18px; }
}

@media (max-width: 640px) {
  .topbar-inner .btn-compact { display: none; }
  .topbar-left { gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 64px; }
  .section { padding: 56px 0; }
  .radar { width: 160px; height: 160px; }
}
