/* ─── HookRelay Landing — Warm Minimal ────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #FBFAF8;
  color: #1C1917;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #FF6B5C; color: #fff; }

/* ─── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; z-index: 100;
  background: rgba(251,250,248,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.2rem; color: #1C1917;
}
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: #78716C; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: #1C1917; }
.nav-cta {
  background: #1C1917; color: #FBFAF8;
  font-weight: 600; font-size: 0.85rem;
  padding: 0.6rem 1.4rem; border-radius: 10px;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover { background: #FF6B5C; transform: translateY(-1px); }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; color: #1C1917; }
.nav-menu-btn svg { width: 24px; height: 24px; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 8rem 2rem 5rem;
  display: flex; justify-content: center;
  position: relative; overflow: hidden;
  background: #FBFAF8;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,107,92,0.06), transparent);
  pointer-events: none;
}
.hero-inner { max-width: 720px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 100px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: #78716C;
  margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.hero-badge .dot {
  width: 7px; height: 7px; background: #FF6B5C; border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em;
  color: #1C1917; margin-bottom: 1.5rem;
}
.hero h1 .accent { color: #FF6B5C; }
.hero-sub {
  font-size: 1.15rem; color: #78716C;
  max-width: 560px; margin: 0 auto 2.5rem;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1C1917; color: #FBFAF8;
  font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.8rem; border-radius: 12px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-primary:hover { background: #FF6B5C; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,107,92,0.2); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  color: #78716C; font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 12px;
  text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { color: #1C1917; background: rgba(0,0,0,0.03); }
.btn-outline {
  display: flex; justify-content: center;
  border: 1px solid rgba(0,0,0,0.1); background: #fff;
  color: #1C1917; font-weight: 600; font-size: 0.9rem;
  padding: 0.8rem 1.5rem; border-radius: 12px;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover { border-color: #1C1917; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ─── Hero Demo ───────────────────────────────────────────── */
.hero-demo {
  background: #fff; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  text-align: left; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: #FAFAF9;
}
.demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #FF6B5C; }
.dot.y { background: #F5C451; }
.dot.g { background: #4CB782; }
.demo-label { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #A8A29E; margin-left: 8px; }
.demo-body { padding: 1.25rem; }
.demo-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; padding: 0.25rem 0;
  font-family: 'JetBrains Mono', monospace;
}
.demo-row.indent { padding-left: 1.5rem; }
.demo-row .arrow { color: #FF6B5C; }
.demo-row .muted { color: #A8A29E; }
.demo-row code { color: #1C1917; background: #F5F5F4; padding: 1px 6px; border-radius: 4px; font-size: 0.8rem; }
.demo-row .ok { color: #4CB782; font-weight: 500; }
.demo-row .pill {
  background: #FF6B5C15; color: #FF6B5C; font-weight: 600;
  padding: 1px 10px; border-radius: 100px; font-size: 0.75rem;
}
.demo-footer {
  margin-top: 0.75rem; font-size: 0.8rem; color: #A8A29E;
  font-family: 'Inter', sans-serif;
}

/* ─── Trust bar ───────────────────────────────────────────── */
.trust {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 2.5rem; padding: 2rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.trust-item { display: flex; align-items: center; gap: 0.6rem; }
.trust-item strong { font-size: 1.1rem; }
.trust-item span { font-size: 0.85rem; color: #78716C; font-weight: 500; }

/* ─── Section ─────────────────────────────────────────────── */
.section { max-width: 1080px; margin: 0 auto; padding: 5rem 2rem; }
.section-head { text-align: center; margin-bottom: 3rem; }
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 500; color: #FF6B5C;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.section-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700;
  color: #1C1917; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-head p { font-size: 1.05rem; color: #78716C; max-width: 520px; margin: 0 auto; }

/* ─── Features ────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: #fff; border-radius: 14px; padding: 1.75rem;
  transition: all 0.25s; border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.25rem;
}
.feature-icon.coral { background: #FFF1EF; color: #FF6B5C; }
.feature-icon.blue { background: #EFF6FF; color: #5B9CF6; }
.feature-icon.sage { background: #F0FDF4; color: #4CB782; }
.feature h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 600; color: #1C1917;
  margin-bottom: 0.5rem;
}
.feature p { font-size: 0.9rem; color: #78716C; line-height: 1.65; }
.feature p b { color: #1C1917; }

/* ─── Code card ───────────────────────────────────────────── */
.code-card {
  max-width: 680px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}
.code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 0.75rem 1rem;
  background: #FAFAF9;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.code-tab {
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
  color: #A8A29E; margin-left: 8px;
}
.code-card pre {
  padding: 1.5rem; font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem; line-height: 1.8; color: #44403C;
  background: #fff; white-space: pre; overflow-x: auto;
}
.code-card .c { color: #A8A29E; }
.code-card .k { color: #FF6B5C; font-weight: 500; }
.code-card .s { color: #4CB782; }
.code-card .n { color: #5B9CF6; }
.code-card .a { color: #D4D4D8; }

/* ─── Pricing ─────────────────────────────────────────────── */
.pricing {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; max-width: 900px; margin: 0 auto;
}
.price-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.25s; position: relative;
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.price-card.featured {
  border-color: #FF6B5C; border-width: 2px;
  box-shadow: 0 4px 20px rgba(255,107,92,0.08);
}
.price-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #FF6B5C; color: #fff;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.25rem 1rem; border-radius: 100px;
}
.price-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 600; color: #78716C;
  margin-bottom: 0.5rem;
}
.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem; font-weight: 700; color: #1C1917;
  margin-bottom: 0.25rem;
}
.price-amount span { font-size: 1rem; font-weight: 400; color: #A8A29E; }
.price-desc { font-size: 0.85rem; color: #78716C; margin-bottom: 1.5rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price-card ul li {
  padding: 0.35rem 0; font-size: 0.88rem; color: #57534E;
  display: flex; align-items: center; gap: 0.5rem;
}
.price-card ul li::before { content: '✓'; color: #FF6B5C; font-weight: 700; }

/* ─── Mobile nav ──────────────────────────────────────────── */
body.nav-open .nav-right {
  display: flex; position: fixed; top: 56px; left: 0; right: 0;
  background: #fff; flex-direction: column;
  padding: 1rem 2rem; gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* ─── Stripe flow section ─────────────────────────────────── */
.stripe-flow {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; margin-bottom: 3rem;
}
.flow-step { text-align: center; max-width: 280px; }
.flow-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: #FF6B5C; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 1rem;
}
.flow-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 600; color: #1C1917;
  margin-bottom: 0.5rem;
}
.flow-step p { font-size: 0.88rem; color: #78716C; line-height: 1.6; }
.flow-step code { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #FF6B5C; background: rgba(255,107,92,0.06); padding: 1px 5px; border-radius: 4px; }
.flow-arrow { font-size: 1.5rem; color: #D4D4D8; font-weight: 300; }
.stripe-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; max-width: 900px; margin: 0 auto;
}
.benefit {
  background: #fff; border-radius: 12px;
  padding: 1.25rem; border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.benefit:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.benefit strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: #1C1917;
  margin-bottom: 0.3rem;
}
.benefit span { font-size: 0.85rem; color: #78716C; line-height: 1.5; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0.8rem 1.25rem; }
  .nav-right { display: none; }
  .nav-menu-btn { display: block; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .trust { gap: 1.5rem; }
  .section { padding: 3rem 1.25rem; }
  .code-card pre { font-size: 0.72rem; }
  .stripe-flow { flex-direction: column; gap: 1.5rem; }
  .flow-arrow { transform: rotate(90deg); }
  .stripe-benefits { grid-template-columns: 1fr; }
}