@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #52627a;
  --line: #e2e8f0;
  --brand: #0948db;
  --emerald: #059669;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(920px 440px at 10% -5%, rgba(9, 72, 219, 0.08), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-btn {
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.16s var(--ease-expo);
}

.nav-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.paid-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 22px;
  animation: slideUpReveal 0.36s var(--ease-expo) both;
}

.hero {
  max-width: 66ch;
  margin-bottom: 26px;
  animation: slideUpReveal 0.42s var(--ease-expo) both;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.08);
  animation: slideUpReveal 0.46s var(--ease-expo) both;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-grid .card:nth-child(1) { animation-delay: 0.06s; }
.store-grid .card:nth-child(2) { animation-delay: 0.12s; }

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 20px 42px -18px rgba(15, 23, 42, 0.12);
}

@keyframes slideUpReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.price-display {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  transition: transform 0.22s var(--ease-expo);
}

.price-display.is-bumping {
  transform: scale(1.09);
}

.field-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.18s var(--ease-expo);
}

.chip:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.chip:active {
  transform: scale(0.95);
}

.chip.is-active {
  background: #eff6ff;
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 12px -4px rgba(9, 72, 219, 0.24);
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfe;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
}

.btn-primary,
.btn-secondary,
.btn-emerald,
.btn-ghost {
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-expo), filter 0.2s ease;
}

.btn-primary {
  border: 0;
  background: var(--brand);
  color: #ffffff;
  flex: 1;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
}

.btn-emerald {
  border: 0;
  background: var(--emerald);
  color: #ffffff;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-emerald:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-primary:active,
.btn-secondary:active,
.btn-emerald:active,
.btn-ghost:active {
  transform: scale(0.97);
}

.sim-bar {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  animation: slideUpReveal 0.3s var(--ease-expo) both;
}

.sim-label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.sim-bar strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
}

.muted-copy {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.webhook-feed {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.empty-feed {
  padding: 28px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
}

.hook-item {
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  overflow-x: auto;
  animation: slideUpReveal 0.34s var(--ease-expo) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.hook-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #34d399;
  font-weight: 600;
}

.hook-item pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 820px) {
  .store-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
}
